<commit_before>#
# PHPUNIT.MK --Rules for running tests with PHP's phpunit framework.
#
# Contents:
# test:           --Run all tests, and save the results to pytest.xml.
# test-phpunit[%]: --Run an individual test.
# clean-phpunit:   --Cleanup files generated by running tests.
#
# Remarks:
# These rules runs the tests defined by the PHP_TESTS explicitly.
#

PHP_TESTS ?= $(PHP_SRC)
PHPUNIT ?= phpunit

#
# test: --Run all tests, and save the results to phpunit.xml.
#
test:	test-phpunit

test-phpunit:
	$(PHPUNIT) --log-junit phpunit-tests.xml $(PHP_TESTS)

#
# test-phpunit[%]: --Run an individual test.
#
test[%.php]:
	$(PHPUNIT) $*.php

clean:		clean-phpunit
distclean:	clean-phpunit

#
# clean-phpunit: --Cleanup files generated by running tests.
#
.PHONY:		clean-phpunit
clean-phpunit:
	$(RM) -r $(PHP_TESTS:%.php=%.xml) phpunit-tests.xml<commit_msg>added customisation options to phpunit<commit_after>#
# PHPUNIT.MK --Rules for running tests with PHP's phpunit framework.
#
# Contents:
# test:           --Run all tests, and save the results to pytest.xml.
# test-phpunit[%]: --Run an individual test.
# clean-phpunit:   --Cleanup files generated by running tests.
#
# Remarks:
# These rules runs the tests defined by the PHP_TESTS explicitly.
#

PHP_TESTS ?= $(PHP_SRC)
PHPUNIT ?= phpunit
PHPUNIT_FLAGS = $(TARGET.PHPUNIT_FLAGS) $(LOCAL.PHPUNIT_FLAGS) \
    $(PROJECT.PHPUNIT_FLAGS) $(ARCH.PHPUNIT_FLAGS) $(OS.PHPUNIT_FLAGS)

#
# test: --Run all tests, and save the results to phpunit.xml.
#
test:	test-phpunit

test-phpunit:
	$(PHPUNIT) $(PHPUNIT_FLAGS) --log-junit phpunit-tests.xml $(PHP_TESTS)

#
# test-phpunit[%]: --Run an individual test.
#
test[%.php]:
	$(PHPUNIT) $(PHPUNIT_FLAGS) $*.php

clean:		clean-phpunit
distclean:	clean-phpunit

#
# clean-phpunit: --Cleanup files generated by running tests.
#
.PHONY:		clean-phpunit
clean-phpunit:
	$(RM) -r $(PHP_TESTS:%.php=%.xml) phpunit-tests.xml
{'fraction_non_alphanumeric': 0.14652014652014653, 'fraction_numerical': 0.0, 'mean_word_length': 3.9151670951156814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3583921', 'n_tokens_mistral': 704, 'n_tokens_neox': 688, 'n_words': 193}