function it_converts_plain_text_to_html_paragraphs()
{
$this->toHtml("Hi, there")->shouldReturn("
<p>
Hi, there
</p>
");
}
bin/phpspec run
提示生成Markdown类的toHtml方法 public function toHtml($argument1)
{
return "
<p>
Hi, there11
</p>
";//这里故意写错
}
bin/phpspec run
Markdown
11 - it converts plain text to html paragraphs
expected "
<p>
Hi, there
</p>
", but got "
<p>
Hi, there11
</p>
".
100% 1
1 specs
1 example (1 failed)
192ms