public static function PHPUnit_Framework_Assert::callback in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::callback()
Returns a PHPUnit_Framework_Constraint_Callback matcher object.
Parameters
callable $callback:
Return value
PHPUnit_Framework_Constraint_Callback
3 calls to PHPUnit_Framework_Assert::callback()
- Framework_AssertTest::testAssertThatCallback in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::callback
- Framework_ConstraintTest::testConstraintCallback in vendor/
phpunit/ phpunit/ tests/ Framework/ ConstraintTest.php - @covers PHPUnit_Framework_Constraint_Callback
- Framework_ConstraintTest::testConstraintCallbackFailure in vendor/
phpunit/ phpunit/ tests/ Framework/ ConstraintTest.php - @covers PHPUnit_Framework_Constraint_Callback @expectedException PHPUnit_Framework_ExpectationFailedException @expectedExceptionMessage Failed asserting that 'This fails' is accepted by specified callback.
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 2430
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function callback($callback) {
return new PHPUnit_Framework_Constraint_Callback($callback);
}