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