tests/PayMeTest.php
/**
     * @test
     * @expectedException BadMethodCallException
     * @expectedExceptionMessage Undefined method [foo] called.
     */
@test
@expectedException BadMethodCallException
@expectedExceptionMessage Undefined method [foo] called.
@test @expectedException BadMethodCallException @expectedExceptionMessage Undefined method [ foo ] called .
public function it_throws_on_unsupported_method_for_gateway()
    {
        $gateway = PayMe::make(['driver' => 'bogus']);
        $gateway->foo();
    }
public function it_throws_on_unsupported_method_for_gateway ( ) { $ gateway = PayMe :: make ( [ 'driver' => 'bogus' ] ) ; $ gateway -> foo ( ) ; }
@test
 @expectedException BadMethodCallException
 @expectedExceptionMessage Undefined method [foo] called.
@test @expectedException BadMethodCallException @expectedExceptionMessage Undefined method [ foo ] called .