Add a bootstrap.php file for the tests

This commit is contained in:
Alex Tselegidis 2023-03-23 07:49:33 +01:00
parent 70a0da37e4
commit 8d3436201c
2 changed files with 7 additions and 2 deletions

View File

@ -1,13 +1,13 @@
<phpunit <phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php" bootstrap="tests/bootstrap.php"
colors="true" colors="true"
cacheResult="false" cacheResult="false"
> >
<testsuites> <testsuites>
<testsuite name="Unit"> <testsuite name="Unit">
<directory suffix="Test.php">./tests</directory> <directory suffix="Test.php">./tests/Unit</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<php> <php>

5
tests/bootstrap.php Normal file
View File

@ -0,0 +1,5 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
define('BASEPATH', __DIR__ . '/../system');