You are here

protected function PHPUnit_Framework_Constraint_FileExists::matches in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/FileExists.php \PHPUnit_Framework_Constraint_FileExists::matches()

Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

Parameters

mixed $other Value or object to evaluate.:

Return value

bool

Overrides PHPUnit_Framework_Constraint::matches

File

vendor/phpunit/phpunit/src/Framework/Constraint/FileExists.php, line 27

Class

PHPUnit_Framework_Constraint_FileExists
Constraint that checks if the file(name) that it is evaluated for exists.

Code

protected function matches($other) {
  return file_exists($other);
}