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