public function testCSS() { $this->assertEquals('<meta name="viewport" content="width=device-width, initial-scale=1.0">', (string) Tag::viewport()); $this->assertEquals('<!DOCTYPE html>', (string) Tag::getDocType()); $this->assertEquals('<html lang="en"></html>', (string) Tag::html()); $this->assertEquals('<html lang="ja" hoge="fuga"></html>', (string) Tag::html('ja', array('hoge' => 'fuga'))); $this->assertEquals('<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=1.0, maximum-scale=1.5">', (string) Tag::viewport(true, '1.0', '1.5')); $this->assertEquals('<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">', (string) Tag::viewport(false)); $this->assertEquals('<img src="#" class="img-responsive">', (string) Tag::imgResponsive()); $this->assertEquals('<img src="http://hoge.com/fuga.jpg" class="img-responsive" alt="Nice image." data-img="big-fuga.jpg">', (string) Tag::imgResponsive('http://hoge.com/fuga.jpg', 'Nice image.', array('data-img' => 'big-fuga.jpg'))); $this->assertEquals('<div class="container"></div>', (string) Tag::container()); $this->assertEquals('<div class="container" fuga>hoge</div>', (string) Tag::container('hoge', array('fuga'))); }