@covers PHPUnit_Framework_Assert::assertObjectNotHasAttribute
public function testObjectNotHasPublicAttribute() {
$obj = new ClassWithNonPublicAttributes();
$this
->assertObjectNotHasAttribute('attribute', $obj);
try {
$this
->assertObjectNotHasAttribute('publicAttribute', $obj);
} catch (PHPUnit_Framework_AssertionFailedError $e) {
return;
}
$this
->fail();
}