Asserts that a class does not have a specified static attribute.
@since Method available since Release 3.1.0
string $attributeName:
string $className:
string $message:
public static function assertClassNotHasStaticAttribute($attributeName, $className, $message = '') {
if (!is_string($attributeName)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
}
if (!is_string($className) || !class_exists($className, FALSE)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'class name');
}
$constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_ClassHasStaticAttribute($attributeName));
self::assertThat($className, $constraint, $message);
}