Ejemplo n.º 1
0
 /**
  * Run to search packages and link
  */
 public function link()
 {
     $this->composerSymInit();
     $log = $this->core->getComposerSymLog($this->projectDir);
     printf("\n> Starting to process composer packages.\n");
     $composerJsonObj = $this->composerJson->getParsedComposerJsonFile();
     LinkWorker::run($log, $this, $this->core, (array) $composerJsonObj->require);
     $log->writeLog();
 }
Ejemplo n.º 2
0
 public function testValidateComposerJsonObject()
 {
     $composerJson = new ComposerJson();
     $composerJson->getComposerJsonFile(build_path(__DIR__, "data"));
     $composerJson->parseComposerJsonData();
     $composerJson->validateComposerJsonObject();
     $this->assertJsonStringEqualsJsonString(json_encode($this->getComposerJson()), json_encode($composerJson->getParsedComposerJsonFile()));
 }