%PDF- %PDF-
Direktori : /var/www/html/rental/vendor/phpspec/phpspec/spec/PhpSpec/Formatter/Html/ |
Current File : /var/www/html/rental/vendor/phpspec/phpspec/spec/PhpSpec/Formatter/Html/ReportPassedItemSpec.php |
<?php namespace spec\PhpSpec\Formatter\Html; use PhpSpec\ObjectBehavior; use Prophecy\Argument; use PhpSpec\Event\ExampleEvent; use PhpSpec\Formatter\Html\Template; class ReportPassedItemSpec extends ObjectBehavior { const EVENT_TITLE = 'it works'; function let(Template $template, ExampleEvent $event) { $this->beConstructedWith($template, $event); } function it_writes_a_pass_message_for_a_passing_example(Template $template, ExampleEvent $event) { $event->getTitle()->willReturn(self::EVENT_TITLE); $template->render(Template::DIR.'/Template/ReportPass.html', array( 'title' => self::EVENT_TITLE ))->shouldBeCalled(); $this->write(); } }