/**
  * Test that the getInstance() methods work as expected.
  *
  * @return void
  */
 public function testNewInstance()
 {
     Database::register();
     $this->assertSame(\Database::getInstance(), Database::getInstance());
     $this->assertNotSame(\Database::getInstance(), Database::getNewTestInstance());
 }
Ejemplo n.º 2
0
 /**
  * Set our database.
  *
  * @return void
  */
 public function setUp()
 {
     Database::register();
 }