Last active
April 25, 2017 10:13
-
-
Save eriktorsner/59790344eb14d30f86160a972d328395 to your computer and use it in GitHub Desktop.
Snippet from helloTestableTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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