lithium\tests\cases\test\UnitTest::testAssertContainsOnlyInstanceOfFalse PHP Method

testAssertContainsOnlyInstanceOfFalse() public method

    public function testAssertContainsOnlyInstanceOfFalse()
    {
        $obj = new \lithium\test\Unit();
        $this->assertFalse($this->test->assertContainsOnlyInstancesOf('stdClass', array($obj)));
        $results = $this->test->results();
        $result = array_pop($results);
        $this->assertEqual('fail', $result['result']);
        $this->assertEqual(array('expected' => 'stdClass', 'result' => array(0 => new \lithium\test\Unit())), $result['data']);
    }
UnitTest