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:
parent
ec3a7834c6
commit
b405190389
2 changed files with 14 additions and 0 deletions
3
bootstrap.php
Normal file
3
bootstrap.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
require 'ncc';
|
||||||
|
import('net.nosial.configlib');
|
11
phpunit.xml
Normal file
11
phpunit.xml
Normal 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>
|
Loading…
Add table
Reference in a new issue