/** * @covers CIUnit_Framework_Assert::assertSameSize() */ public function testAssertSameSizeProperlyFailsWithInvalidTypeException() { // #1 Countable, Iterator,or Array try { CIUnit_Framework_Assert::assertSameSize(1920, array()); } catch (CIUnit_Framework_Exception_InvalidArgument $e) { } // #2 Countable, Iterator,or Array try { CIUnit_Framework_Assert::assertSameSize(array('one'), new stdClass()); } catch (CIUnit_Framework_Exception_InvalidArgument $e) { return; } $this->fail(); }