Esempio n. 1
0
 /** @test */
 public function isAThrowsExceptionIfAssertionDoesNotHold()
 {
     // This test should throw an exception
     try {
         Tx_PtExtbase_Assertions_Assert::isA($this, 'Tx_PtExtbase_Tests_Unit_Assertion_AssertTestFakeInterface', array('message' => 'This throws an exception'));
     } catch (Exception $e) {
         return;
     }
     $this->fail('We should get an exception, as we tested whether a class implements an interface which the class does not implement.');
 }