//ads:
?>
PHP Fatal error: Class not found - PHPUnit
PHP Snippet 1:
require __DIR__ . "/../controllers/Pages.php";
PHP Snippet 2:
phpunit --bootstrap src/autoload.php
PHP Snippet 3:
<phpunit bootstrap="src/autoload.php">
<testsuites>
<testsuite name="money">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
PHP Snippet 4:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"> <!-- in here -->
<php>
<!-- ... -->
</php>
<testsuites>
<!-- ... -->
</testsuites>
</phpunit>
PHP Snippet 5:
$ cd C:\xampp\htdocs\PHPUnitTestProject\
$ vendor\bin\phpunit tests/PagesTest.php