public static function PHPUnit_Framework_Assert::attribute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::attribute()
Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
@since Method available since Release 3.1.0
Parameters
PHPUnit_Framework_Constraint $constraint:
string $attributeName:
Return value
PHPUnit_Framework_Constraint_Attribute
3 calls to PHPUnit_Framework_Assert::attribute()
- Framework_AssertTest::testAssertThatAttributeEquals in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo
- Framework_AssertTest::testAssertThatAttributeEquals2 in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo @expectedException PHPUnit_Framework_AssertionFailedError
- PHPUnit_Framework_Assert::attributeEqualTo in vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php - Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 2476
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function attribute(PHPUnit_Framework_Constraint $constraint, $attributeName) {
return new PHPUnit_Framework_Constraint_Attribute($constraint, $attributeName);
}