From: widmogrod Date: Sun, 25 Jun 2017 19:19:28 +0000 (+0200) Subject: Fix typo X-Git-Tag: 2.0.0-beta3~5^2~5 X-Git-Url: http://cameron1729.xyz/?a=commitdiff_plain;h=d2f1b4efff210ccd380c44bec096183409475354;p=php-functional.git Fix typo --- diff --git a/example/FreeMonadTest.php b/example/FreeMonadTest.php index 72e2cbe..cdb3add 100644 --- a/example/FreeMonadTest.php +++ b/example/FreeMonadTest.php @@ -55,10 +55,10 @@ function exitSuccess_() return liftF(new ExitSuccess()); } -const integrateIO = 'example\integrateIO'; +const interpretIO = 'example\interpretIO'; // run :: TeletypeF IO () -function integrateIO(TeletypeF $r) +function interpretIO(TeletypeF $r) { return match([ PutStrLn::class => function (PutStrLn $a) { @@ -131,7 +131,7 @@ class FreeMonadTest extends \PHPUnit_Framework_TestCase public function test_it_should_allow_to_interpret_as_IO() { $echo = echo_(); - $result = $echo->runFree(integrateIO); + $result = $echo->runFree(interpretIO); $this->assertInstanceOf(IO::class, $result); // Since in PHPUnit STDIN is closed // this run will not work, but serves as an example