public function patch(Build $build) { $this->info("===> Checking if php-5.3 source is on 64bit machine"); if ($this->match($build)) { // Then patch Makefile for PHP 5.3.x on 64bit system. $this->info("===> Applying patch file for php5.3.x on 64bit machine."); if (!$this->options->dryrun) { $patches = PatchCollection::createPatchesFor64BitSupport($this->logger, $build); foreach ($patches as $patch) { $patch->enableBackup(); $patch->apply(); } } } }
public function testCreatePathcesFor64BitSupport() { is(1, count(PatchCollection::createPatchesFor64BitSupport($this->logger, $this->build))); }