Example #1
0
 /**
  * Registers an array of environments
  *
  * @param Array $environments
  * @return Application
  * @author Dan Cox
  */
 public function registerEnvironments(array $environments)
 {
     $this->envCollection->append($environments);
     return $this;
 }
Example #2
0
 /**
  * Test appending data
  *
  * @return void
  * @author Dan Cox
  */
 public function test_append()
 {
     $collection = new Collection(['foo' => 'bar']);
     $collection->append(['test' => 'test']);
     $this->assertEquals(['foo' => 'bar', 'test' => 'test'], $collection->all());
 }