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

testClassHasAttributeWrongClassType() public method

    public function testClassHasAttributeWrongClassType()
    {
        $self =& $this;
        $this->assertException('InvalidArgumentException', function () use($self) {
            $self->test->assertClassHasAttribute('foo', new \stdClass());
        });
    }
UnitTest