public function testRemovePackageLocal() { $executor = $this->getMockBuilder('TRex\\Cli\\Executor')->getMock(); $executor->expects($this->once())->method('flush')->with('composer remove name')->will($this->returnValue(0)); $composer = new Composer($executor, new BalloonFactory(new DummyFileReaderFactory())); $this->assertSame(0, $composer->removePackage('name', false)); }
/** * @param Module $module * @return bool */ private function removeModule(Module $module) { return $this->composer->removePackage($module->getPackage(), true) === 0; }