Ejemplo n.º 1
0
 /**
  * @see Console\Command\Command
  */
 protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
 {
     $config = $this->getHelper('config')->getConfig();
     list($profile, $path) = ProfileGenerator::generate($config);
     $output->write($profile . PHP_EOL);
     if (isset($profile)) {
         $output->write('Profile created at ' . $path);
     } else {
         $output->write('Profile creation failed at ' . $path);
     }
 }
Ejemplo n.º 2
0
 public function testViewHelperPersist()
 {
     $config = $this->serviceManager->get('Configuration')['sds']['dojo'];
     ProfileGenerator::generate($config);
     $this->assertEquals(file_get_contents($this->profilePath . '/desired.profile.js'), file_get_contents($this->profilePath . '/generated.profile.js'));
 }