/** * @covers \Phix\App::css */ public function testCss() { $app = new App(); $app->css('$(function() {});'); $this->assertTrue(in_array('Content-Type: text/css;charset=utf-8', $app->headers())); $this->assertEquals('$(function() {});', $app->output()); $app = new App(); $app->css(function () { return '$(function() {});'; }); $this->assertTrue(in_array('Content-Type: text/css;charset=utf-8', $app->headers())); $this->assertEquals('$(function() {});', $app->output()); }
<html lang="en"> <head> <meta charset="utf-8"> <title>Youtube</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- CSS --> <?php echo App::css($this->css('bootstrap')); ?> <?php echo App::css($this->css('bootstrap-responsive')); ?> <?php echo App::css($this->css('app')); ?> <script type="text/javascript"> Path = { base:'<?php echo $this->base_path; ?> ', css:'<?php echo $this->css; ?> ', js:'<?php echo $this->js; ?> ',
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Mais visualizados do Mês - YouTube - Busque e compartilhe vídeos no Twitter</title> <meta name="keywords" content="youtube video search twitter compartilhar buscar"> <meta name="description" content="Buscar, visualizar vídeos do Youtube, compartilhando pelo Twitter" /> <?php echo App::css($this->css('style')); ?> <?php echo App::css($this->css('fonts-min')); ?> <?php echo App::js($this->js('swfobject')); ?> <!--link rel="shortcut icon" type="image/x-icon" href="favicon.ico>"--> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <style media="screen" type="text/css">#ytapiplayer {visibility:hidden}</style> </head> <body style="width: 840px;"> <?php echo $this->view_html; ?> <!-- start js --> <?php echo App::js($this->js('yahoo-dom-event')); ?> <?php echo App::js($this->js('animation-min')); ?>