/** * @expectedException InvalidArgumentException * @depends testAddGetHtmlTagAttributes * @dataProvider provideEmptyStrings * @return null */ public function testSetHeadAttributesInvalidName_Failure($name) { $attrs = array('class' => 'my-class', $name => 'my-id', 'checked' => null); $this->htmlDoc->setHeadAttributes($attrs); }