/** * @covers CIUnit_Framework_Assert::assertInstanceOf() */ public function testAssertThatIsInstanceOfProperlyFailsWithInvalidArgument() { // #2 has to be an object try { CIUnit_Framework_Assert::assertInstanceOf('RuntimeException', 'RuntimeException'); } catch (CIUnit_Framework_Exception_InvalidArgument $e) { } // #1 has to be string or object try { CIUnit_Framework_Assert::assertInstanceOf(array(), new RuntimeException()); } catch (CIUnit_Framework_Exception_InvalidArgument $e) { return; } $this->fail(); }