Example #1
0
 /**
  * @return array
  * @throws \Exception
  */
 protected function createEnvironments()
 {
     $result = [];
     $result[] = Environment::create('live');
     $result[] = Environment::create('local');
     $result[] = Environment::create('development');
     $result[] = Environment::create('staging');
     return $result;
 }
Example #2
0
 /**
  * @test
  * @return void
  */
 public function testCreateMethodWillThrowExceptionWhenNameIsEmpty()
 {
     $this->setExpectedException('\\Exception', 'EnvironmentName cant be empty.', 1456222301);
     Environment::create('');
 }