public static function PHPUnit_Framework_Assert::arrayHasKey in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::arrayHasKey()
Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
@since Method available since Release 3.0.0
Parameters
mixed $key:
Return value
PHPUnit_Framework_Constraint_ArrayHasKey
5 calls to PHPUnit_Framework_Assert::arrayHasKey()
- Framework_AssertTest::testAssertThatArrayHasKey in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::arrayHasKey
- Framework_ConstraintTest::testConstraintArrayHasKey in vendor/
phpunit/ phpunit/ tests/ Framework/ ConstraintTest.php - @covers PHPUnit_Framework_Constraint_ArrayHasKey @covers PHPUnit_Framework_Assert::arrayHasKey @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
- Framework_ConstraintTest::testConstraintArrayHasKey2 in vendor/
phpunit/ phpunit/ tests/ Framework/ ConstraintTest.php - @covers PHPUnit_Framework_Constraint_ArrayHasKey @covers PHPUnit_Framework_Assert::arrayHasKey @covers PHPUnit_Framework_TestFailure::exceptionToString
- Framework_ConstraintTest::testConstraintArrayNotHasKey in vendor/
phpunit/ phpunit/ tests/ Framework/ ConstraintTest.php - @covers PHPUnit_Framework_Constraint_ArrayHasKey @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::arrayHasKey @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
- Framework_ConstraintTest::testConstraintArrayNotHasKey2 in vendor/
phpunit/ phpunit/ tests/ Framework/ ConstraintTest.php - @covers PHPUnit_Framework_Constraint_ArrayHasKey @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::arrayHasKey @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 2531
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function arrayHasKey($key) {
return new PHPUnit_Framework_Constraint_ArrayHasKey($key);
}