克隆回購。我猜你有這個,但已經是完整的
$ git clone https://github.com/sebastianbergmann/phpunit
變成它
$ cd phpunit
一個build.xml文件的手段(主要)是Ant作爲構建管理系統。爲了弄清楚它的目標項目(-p)提供只問螞蟻本身:
$ ant -p
那麼你應該得到這樣的輸出:
Buildfile: /private/tmp/phpunit/build.xml
Main targets:
clean Cleanup build artifacts
composer Install dependencies with Composer
pdepend Calculate software metrics using PHP_Depend
pear Create PEAR package of PHPUnit and all its dependencies (release)
phar Create PHAR archive of PHPUnit and all its dependencies (release)
phar-alpha Create PHAR archive of PHPUnit and all its dependencies (alpha)
phar-beta Create PHAR archive of PHPUnit and all its dependencies (beta)
phpab Generate autoloader script
phpcpd Find duplicate code using PHPCPD
phpcs Find coding standard violations using PHP_CodeSniffer
phpcs-ci Find coding standard violations using PHP_CodeSniffer
phpdox Generate software project documentation using phpDox
phploc Measure project size using PHPLOC
phpmd Perform project mess detection using PHPMD
phpmd-ci Perform project mess detection using PHPMD
phpunit Run unit tests with PHPUnit
prepare Prepare for build
Default target: build
剩下的就是簡單 - 只需鍵入
$ ant phar
該任務將安裝Composer(即使您已經擁有它,但將其複製到當前文件夾中)並下載所有的依賴關係。