/** * @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; }
/** * @test * @return void */ public function testCreateMethodWillThrowExceptionWhenNameIsEmpty() { $this->setExpectedException('\\Exception', 'EnvironmentName cant be empty.', 1456222301); Environment::create(''); }