Ejemplo n.º 1
0
 /**
  * @depends	testInitialState
  * @return	null
  */
 public function testCreateStyleTagWithContentAndTypeAndSep()
 {
     $list = array('p {color: red}', 'h1 {color:blue}');
     $type = 'text/html';
     $sep = ':';
     $tag = $this->factory->createStyleTag($list, $type, $sep);
     $this->assertInstanceOf('Appfuel\\View\\Html\\Tag\\StyleTag', $tag);
     $this->assertFalse($tag->isEmpty());
     $this->assertTrue($tag->isAttribute('type'));
     $this->assertEquals($type, $tag->getAttribute('type'));
     $this->assertEquals($sep, $tag->getContentSeparator());
     $this->assertEquals($list, $tag->getContent());
 }