You are here

protected function PHPUnit_Framework_Constraint_ExceptionCode::matches in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php \PHPUnit_Framework_Constraint_ExceptionCode::matches()

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

Parameters

Exception $other:

Return value

bool

Overrides PHPUnit_Framework_Constraint::matches

File

vendor/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php, line 37

Class

PHPUnit_Framework_Constraint_ExceptionCode
@since Class available since Release 3.6.6

Code

protected function matches($other) {
  return (string) $other
    ->getCode() == (string) $this->expectedCode;
}