Ejemplo n.º 1
0
 public function testBindingASuccessWithSomethingThatThrowsAnExceptionWillReturnAFailure()
 {
     $sut = new Success('foo');
     $this->assertInstanceOf('Monad\\FTry\\Failure', $sut->bind(function () {
         throw new \Exception();
     }));
 }