Пример #1
0
 public function testSetEnvironment()
 {
     $this->specify('The repository\'s environment can be set at intialisation', function () {
         $repo = new Repository($this->loader(), 'staging');
         $this->assertEquals('second-staging', $repo->get('app.seconditem'));
     });
     $this->specify('The repository\'s environment can be read', function () {
         $repo = new Repository($this->loader(), 'testing');
         $this->assertEquals('testing', $repo->getEnvironment());
     });
 }