/** * @expectedException InvalidArgumentException * @depends testInterface * @return null */ public function testSetLinkTagNotLink() { $link = $this->getMock($this->tagInterface); $link->expects($this->once())->method('getTagName')->will($this->returnValue('style')); $this->htmlDoc->addLinkTag($link); }