public static function 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 drupal/core/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 drupal/core/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 drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php, line 2427

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);
}