You are here

public function PHPUnit_Framework_Constraint_ClassHasAttribute::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php \PHPUnit_Framework_Constraint_ClassHasAttribute::__construct()

Parameters

string $attributeName:

Overrides PHPUnit_Framework_Constraint::__construct

File

vendor/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php, line 29

Class

PHPUnit_Framework_Constraint_ClassHasAttribute
Constraint that asserts that the class it is evaluated for has a given attribute.

Code

public function __construct($attributeName) {
  parent::__construct();
  $this->attributeName = $attributeName;
}