Пример #1
0
 /**
  * @test
  */
 public function testRun()
 {
     $processes = $this->manager->install(['foo' => 'bar']);
     $this->assertCount(2, $processes);
     $this->assertArrayHasKey('foo', $processes);
     $this->assertArrayHasKey('bar', $processes);
     $this->npm->install(['foo' => 'bar'], Argument::type(ConfigurationInterface::class))->shouldBeCalledTimes(2);
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function doExecute(NpmManager $npmManager, InputInterface $input)
 {
     return $npmManager->install();
 }