/** * @test */ public function returnsNullIfArgumentIsNotCallable() { $identifier = 'notCallable'; $result = $this->resolver->resolve($identifier); $this->assertNull($result); }
/** * @expectedException \Felipecwb\Routing\Exception\ResolverException */ public function testHandleWithNoCallable() { $resolver = new CallableResolver(); $resolver->handle('non-function'); }