protected function setUp() { $this->application = new Application(); $this->application->unitTesting = true; $this->application->context()->simulateNonCli = false; $this->application->registerModule(new UnitTestingModule()); $this->application->initialiseModules(); ExceptionHandler::disableExceptionTrapping(); }
public function testApplicationRuns() { $application = new Application(); $application->registerModule(new UnitTestingModule()); $application->initialiseModules(); $request = new WebRequest(); $request->urlPath = "/"; $response = $application->generateResponseForRequest($request); $this->assertContains(SimpleContent::CONTENT, $response->getContent()); }