/** * @param Project $project * @throws \Exception */ protected function buildCore(Project $project) { if (!($core = $project->getCorePackage())) { return; } if (!$project->isForce() && $this->isCoreBuilt($project)) { return; } $this->buildPackage($project, $core, $this->getStrategy('copy')); }
public function testIsForce() { $project = new Project(); $project->setForce(true); $this->assertTrue($project->isForce()); }