You are here

public static function PHPUnit_Framework_Assert::classHasAttribute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::classHasAttribute()

Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.

@since Method available since Release 3.1.0

Parameters

string $attributeName:

Return value

PHPUnit_Framework_Constraint_ClassHasAttribute

5 calls to PHPUnit_Framework_Assert::classHasAttribute()
Framework_AssertTest::testAssertThatClassHasAttribute in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::classHasAttribute
Framework_ConstraintTest::testConstraintClassHasAttribute in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasAttribute @covers PHPUnit_Framework_Assert::classHasAttribute @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintClassHasAttribute2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasAttribute @covers PHPUnit_Framework_Assert::classHasAttribute @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintClassNotHasAttribute in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasAttribute @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::classHasAttribute @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintClassNotHasAttribute2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_ClassHasAttribute @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::classHasAttribute @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 2644

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function classHasAttribute($attributeName) {
  return new PHPUnit_Framework_Constraint_ClassHasAttribute($attributeName);
}