Exemplo n.º 1
0
 protected function tearDown()
 {
     S::$n->db->selectDatabase('overload');
     S::$n->db->nuke();
     S::$n->db->selectDatabase('default');
     S::$n->db->nuke();
     S::destroy();
 }
Exemplo n.º 2
0
 /**
  * @runInSeparateProcess
  *
  * @requires PHP 5.4
  */
 public function testMissingProvider()
 {
     if ($GLOBALS['IS_HHVM']) {
         $this->markTestSkipped();
         return;
     }
     S::destroy();
     S::bootstrap('Saltwater\\Root\\Root');
     S::$n->nosuchprovider;
     $this->assertEquals(500, http_response_code());
 }
Exemplo n.º 3
0
 public function testCache()
 {
     $path = __DIR__ . '/cache/cache.cache';
     S::bootstrap('Saltwater\\Root\\Root', $path);
     $navigator = clone S::$n;
     S::destroy();
     S::bootstrap('Saltwater\\Root\\Root', $path);
     $this->assertEquals($navigator, S::$n);
     unlink($path);
     rmdir(__DIR__ . '/cache');
 }
Exemplo n.º 4
0
 protected function tearDown()
 {
     S::destroy();
 }
Exemplo n.º 5
0
 public static function tearDownAfterClass()
 {
     S::$n->db->nuke();
     S::destroy();
 }
Exemplo n.º 6
0
 public static function tearDownAfterClass()
 {
     S::destroy();
 }