Add PHPUnit configuration and bootstrap files

Introduced `phpunit.xml` for setting up our PHPUnit test suite with essential settings. Also added `bootstrap.php` to require necessary dependencies and import the `ConfigLib` library. This allows for a standardized testing environment and smoother test execution.
This commit is contained in:
netkas 2024-09-17 12:00:36 -04:00
parent ec3a7834c6
commit b405190389
2 changed files with 14 additions and 0 deletions

3
bootstrap.php Normal file
View file

@ -0,0 +1,3 @@
<?php
require 'ncc';
import('net.nosial.configlib');

11
phpunit.xml Normal file
View file

@ -0,0 +1,11 @@
<phpunit bootstrap="bootstrap.php">
<testsuites>
<testsuite name="ConfigLib Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="-1"/>
<server name="KERNEL_DIR" value="app/"/>
</php>
</phpunit>