classes/phing/tasks/system/condition/FilesMatch.php
public function evaluate()
    {
        if ($this->file1 == null || $this->file2 == null) {
            throw new BuildException("both file1 and file2 are required in filesmatch");
        }

        $fu = new FileUtils;

        return $fu->contentEquals($this->file1, $this->file2);
    }
public function evaluate()
    {
        if ($this->file1 == null || $this->file2 == null) {
            throw new BuildException("both file1 and file2 are required in filesmatch");
        }

        $fu = new FileUtils;

        return $fu->contentEquals($this->file1, $this->file2);
    }
public function evaluate ( ) { if ( $ this -> file1 == null || $ this -> file2 == null ) { throw new BuildException ( "both file1 and file2 are required in filesmatch" ) ; } $ fu = new FileUtils ; return $ fu -> contentEquals ( $ this -> file1 , $ this -> file2 ) ; }
comparison method of the interface

@return bool if the files are equal
@throws BuildException if it all went pear-shaped
comparison method of the interface