/** * @expectedException InvalidArgumentException * @depends testDefaultJsBodyInlineScriptTag * @return null */ public function testSetJsBodyInlineScriptSrcNotEmpty_Failure() { $script = $this->getMock($this->tagInterface); $script->expects($this->once())->method('getTagName')->will($this->returnValue('script')); $script->expects($this->once())->method('getAttribute')->with($this->equalTo('src'))->will($this->returnValue('my-js.js')); $this->htmlDoc->setJsBodyInlineScriptTag($script); }