/** * Test the caching functionality * * @return void * @author Dan Cox */ public function test_cache() { $di = new DI(CONFIG); $di->buildContainerFromCache('core'); $this->assertTrue(class_exists('Wasp\\Application\\Cache\\AppCache')); $this->assertInstanceOf('Wasp\\Application\\Cache\\AppCache', $di->get('connections')->getDI()); }
/** * Responds to the current request * * @return void * @author Dan Cox **/ public function respond() { $response = $this->react(); $response->send(); $this->DI->get('kernel')->terminate($this->DI->get('request')->getRequest(), $response); }