/** * @depends testInitialState * @return null */ public function testCreateScriptTagWithContentWithSep() { $list = array('alert("hey");', 'var myvar = "blah";'); $sep = ':'; $tag = $this->factory->createScriptTag(null, $list, $sep); $this->assertInstanceOf('Appfuel\\View\\Html\\Tag\\ScriptTag', $tag); $this->assertFalse($tag->isEmpty()); $this->assertFalse($tag->isAttribute('src')); $this->assertTrue($tag->isAttribute('type')); $this->assertEquals('text/javascript', $tag->getAttribute('type')); $this->assertEquals(':', $tag->getContentSeparator()); $this->assertEquals($list, $tag->getContent()); }