Esempio n. 1
0
 /**
  * @covers PixelPolishers\Resolver\Config\Config::getProjectsDirectory
  * @covers PixelPolishers\Resolver\Config\Config::setProjectsDirectory
  */
 public function testProjectsDirectoryGetterSetter()
 {
     // Arrange
     $config = new Config();
     // Act
     $config->setProjectsDirectory('test');
     // Assert
     $this->assertEquals('test', $config->getProjectsDirectory());
 }
Esempio n. 2
0
 protected function parseVendorDirectory(Config $config, $data)
 {
     if (array_key_exists('vendor-dir', $data)) {
         $config->setVendorDirectory($data['vendor-dir']);
     }
 }