Evaluates the constraint for parameter $other. Returns TRUE if the
constraint is met, FALSE otherwise.
Parameters
Exception $other:
Return value
boolean
Overrides PHPUnit_Framework_Constraint::matches
File
- drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ExceptionMessage.php, line 79
Class
- PHPUnit_Framework_Constraint_ExceptionMessage
- @package PHPUnit
@subpackage Framework_Constraint
@author Sebastian Bergmann <sebastian@phpunit.de>
@copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de>
@license http://www.opensource.org/licenses/BSD-3-Clause The BSD…
Code
protected function matches($other) {
return strpos($other
->getMessage(), $this->expectedMessage) !== FALSE;
}