/** * @expectedException InvalidArgumentException * @depends testInitialState * @return null */ public function testSetInlineStyleTagNotStyle_Failure() { $tag = $this->getMock($this->tagInterface); $tag->expects($this->once())->method('getTagName')->will($this->returnValue('title')); $this->head->setInlineStyleTag($tag); }