Skip to content

Instantly share code, notes, and snippets.

@fredemmott
Created August 27, 2015 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredemmott/ae2f3089bdaeb0e20af3 to your computer and use it in GitHub Desktop.
Save fredemmott/ae2f3089bdaeb0e20af3 to your computer and use it in GitHub Desktop.
/**
* @covers PHPUnit_Framework_Assert::assertClassHasStaticAttribute
*/
public function testClassHasPublicStaticAttribute()
{
$this->assertClassHasStaticAttribute('publicStaticAttribute', 'ClassWithNonPublicAttributes');
try {
$this->assertClassHasStaticAttribute('attribute', 'ClassWithNonPublicAttributes');
}
catch (PHPUnit_Framework_AssertionFailedError $e) {
return;
}
$this->fail();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment