php - How does phpunit command make search class testing? -
i use windows. example have website structure smth this:
site/ engine/ modelclass.php www/ index.php tests/ modelcalsstest.php phpunit.bat
where should store phpunit.bat run test modelclasstest.php?
you should not need store phpunit.bat
@ all. should in path
.
just install via pear , done. if don't want , have locally on system or want phpunit sources in version control (some people want that) doesn't matter phpunit.bat really. project root fine, somewhere in vendor/phpunit/phpunit.bat
fine if have ant or phing or .bat file in project root lets "run tests now"
.
what observe "best-practice" put phpunit.xml.dist
(the config file) in application root people can just:
- get source
- type
phpunit
- see works
see: a sample project made phpunit author
what i've seen people put config file in "tests" folder have "clean project root". works out nicely.
references: documentation on phpunit xml file
Comments
Post a Comment