/** @test */ public function it_throws_the_method_does_not_exist() { $fn = T\callMethod('doesNotExist'); $this->setExpectedException(UnexpectedValueException::class, 'is not a valid method'); $fn(new CallMethodExample()); }
/** * @test * @expectedException \InvalidArgumentException */ public function it_throws_exception_when_argument_not_string() { T\callMethod(1); }