Esempio n. 1
0
 /**
  * Boots packages.
  *
  * @access  protected
  * @param   string     $type  Package type
  */
 protected function packageBooter($type)
 {
     foreach ($this->config->get('application.packages.' . $type) as $package) {
         $package = new $package($this->container);
         $package->boot();
         $this->packages[$package->getName()] = $package;
     }
 }
 /**
  *
  */
 public function testRemove()
 {
     $fileSystem = $this->getFileSystem();
     $fileSystem->shouldReceive('exists')->once()->with('/app/config/settings.php')->andReturn(true);
     $fileSystem->shouldReceive('includeFile')->once()->with('/app/config/settings.php')->andReturn(['greeting' => 'hello']);
     $config = new Config($fileSystem, '/app/config');
     $this->assertEquals('hello', $config->get('settings.greeting'));
     $config->remove('settings.greeting');
     $this->assertNull($config->get('settings.greeting'));
 }