public function testInvalidHandler() { $middleware = new \Owl\Middleware(); $this->setExpectedExceptionRegExp('\\Exception', '/is not callable/'); $middleware->insert(1); }