From d2f1b4efff210ccd380c44bec096183409475354 Mon Sep 17 00:00:00 2001 From: widmogrod Date: Sun, 25 Jun 2017 21:19:28 +0200 Subject: [PATCH] Fix typo --- example/FreeMonadTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.11.0