public static function PHPUnit_Framework_Assert::classHasStaticAttribute

Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.

@since Method available since Release 3.1.0

Parameters

string $attributeName:

Return value

PHPUnit_Framework_Constraint_ClassHasStaticAttribute

5 calls to PHPUnit_Framework_Assert::classHasStaticAttribute()
Framework_AssertTest::testAssertThatClassHasStaticAttribute in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::classHasStaticAttribute
Framework_ConstraintTest::testConstraintClassHasStaticAttribute in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute @covers PHPUnit_Framework_Assert::classHasStaticAttribute @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintClassHasStaticAttribute2 in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute @covers PHPUnit_Framework_Assert::classHasStaticAttribute @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintClassNotHasStaticAttribute in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::classHasStaticAttribute @covers PHPUnit_Framework_Assert::logicalNot @covers…
Framework_ConstraintTest::testConstraintClassNotHasStaticAttribute2 in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasStaticAttribute @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::classHasStaticAttribute @covers PHPUnit_Framework_Assert::logicalNot @covers…

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function classHasStaticAttribute($attributeName) {
  return new PHPUnit_Framework_Constraint_ClassHasStaticAttribute($attributeName);
}