/** * @covers CIUnit_Framework_Assert::assertStringEndsWith() */ public function testAssertStringEndsWithProperlyFailsWithInvalidTypeException() { // #1 must be string try { CIUnit_Framework_Assert::assertStringEndsWith(array(1), 'presentation'); } catch (CIUnit_Framework_Exception_InvalidArgument $e) { } // #2 String as well try { CIUnit_Framework_Assert::assertStringEndsWith('abc', array('abc')); } catch (CIUnit_Framework_Exception_InvalidArgument $e) { return; } $this->fail(); }