public function testNoKernelProvidedException() { $this->setExpectedException("RuntimeException", "No Cubex Kernel has been configured"); $cubex = new Cubex(__DIR__); $cubex->instance('\\Cubex\\Kernel\\CubexKernel', new \stdClass()); $request = Request::createFromGlobals(); $cubex->handle($request, Cubex::MASTER_REQUEST, false); }