public static function assertAttributeInstanceOf($expected, $attributeName, $classOrObject, $message = '') { static::assertInstanceOf($expected, static::readAttribute($classOrObject, $attributeName), $message); }
/** * Test the semantic() function * * @expectedException ErrorException * * @return void */ public function testSemantic() { $this->handler = new ParserPlugin('doesNotExist'); $this->handler = new ParserPlugin('Microdata'); PHPUnit_Framework_Assert::assertAttributeInstanceOf('PHPMicrodata', 'handler', $this->handler); $this->handler = new ParserPlugin('RDFa'); PHPUnit_Framework_Assert::assertAttributeInstanceOf('PHPRDFa', 'handler', $this->handler); }