Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippet from helloTestableTest.php
<?php
public function testEchoLyric()
{
$mockLyric = new \MockLyric('foobar');
$hello = new helloTestable($mockLyric);
$this->expectOutputRegex('/.*foobar*./');
$hello->echoLyric();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment