1 # If you have problems with excessive memory usage, use the "tap" or "separate" targets.
3 TEST_FILES
=$(shell php
-r
'include( "./TestFileList.php" ); echo implode( " ", $$testFiles );')
4 TEST_FILE_TARGETS
=$(subst .php
,.target
,$(TEST_FILES
))
6 .PHONY
: help
test phpunit tap separate
install $(TEST_FILE_TARGETS
)
14 prove
-e
'php phpunit --tap' *Test
*.php
16 separate
: $(TEST_FILE_TARGETS
)
18 # Need --tap because without it, the target specification doesn't work
19 $(TEST_FILE_TARGETS
) : %.target
: %.php
23 pear channel-discover pear.phpunit.de
24 pear
install phpunit
/PHPUnit
28 # phpunit (default) Run all the tests with phpunit
29 # separate Run each test file in a separate process
30 # tap Run the tests individually through Test::Harness's prove(1)
31 # install Install PHPUnit from phpunit.de
32 # help You're looking at it!