an interface `Reader` for you? [Y/n] ... Would you like me to generate a method signature `Reader::getMarkdown()` for you? [Y/n] ... Do you want me to create `Markdown::toHtmlFromReader()` for you? [Y/n] ... Do you want me to make `Markdown::toHtmlFromReader()` always return '<p>Hi, there</p>' for you? [Y/n] Method Markdown::toHtmlFromReader() has been modified. / skipped: 0% / pending: 0% / passed: 100% / failed: 0% / broken: 0% / 3 examples 1 specs 3 examples (3 passed) 43ms Reader::getMarkdown() Makkdown::toHtmlFromReader()
$writer) { $this->beConstructedWith($writer); } function it_outputs_converted_text($writer) { $writer->writeText("<p>Hi, there</p>") ->shouldBeCalled(); $this->outputHtml("Hi, there"); } spec/MarkdownSpec.php let example let example $writer
Design How Your Objects Talk Through Mocking at Laracon EU 2014 (https://www.youtube.com/watch?v=X6y-OyMPqfw) Laracon EU phpspec Does TDD really lead to good design? (http://codurance.com/2015/05/12/does-tdd-lead-to-good-design/) Detroit school London School Laracast (https://laracasts.com/index/phpspec) Laravel PHP