Fix typo
authorwidmogrod <widmogrod@gmail.com>
Sun, 25 Jun 2017 19:19:28 +0000 (21:19 +0200)
committerwidmogrod <widmogrod@gmail.com>
Sun, 25 Jun 2017 19:19:28 +0000 (21:19 +0200)
example/FreeMonadTest.php

index 72e2cbe..cdb3add 100644 (file)
@@ -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