/** * Test that an exception is thrown when an invalid class is given * * @expectedException InvalidArgumentException */ public function testInvalidCallbackMatch() { $route = new \Psecio\Invoke\RouteContainer('/foo/bar', ['callback' => 'BadClass::test1']); $this->data->setRoute($route); $cb = new Callback([]); $cb->evaluate($this->data); }