Example #1
0
 /**
  * Test registering and deregistering environments
  *
  * @return void
  * @author Dan Cox
  */
 public function test_deregisterEnvironment()
 {
     $this->setExpectedException('Wasp\\Exceptions\\Application\\UnknownEnvironment');
     $app = new Application();
     $app->registerEnvironment('TestEnv', 'TestEnvClass');
     $this->assertEquals('TestEnvClass', $app->getEnvironment('TestEnv'));
     $app->deregisterEnvironment('TestEnv');
     $app->getEnvironment('TestEnv');
 }