예제 #1
0
 /**
  * @covers CIUnit_Framework_Assert::assertObjectNotHasAttribute()
  */
 public function testAssertObjectNotHasAttribute()
 {
     CIUnit_Framework_Assert::assertObjectNotHasAttribute('notExistingObjectAttribute', new ClassWithAttributes());
     try {
         CIUnit_Framework_Assert::assertObjectNotHasAttribute('privateAttribute', new ClassWithAttributes());
     } catch (CIUnit_Framework_Exception_AssertionFailed $e) {
         return;
     }
     $this->fail();
 }