Skip to content

Commit d520068

Browse files
committed
- updates phpunit.xml to run tests in isolation
- removed dev functions from phpunit autoloader
1 parent 5055d88 commit d520068

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Tests/loader.php renamed to Tests/bootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
error_reporting(E_ALL);
44

55
require_once __DIR__ . '/../vendor/autoload.php';
6-
require_once __DIR__ . '/../vendor/koded/stdlib/functions-dev.php';

phpunit.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.4/phpunit.xsd"
4-
bootstrap="Tests/loader.php"
4+
bootstrap="Tests/bootstrap.php"
5+
processIsolation="true"
6+
stopOnError="true"
57
verbose="true"
68
colors="true">
79
<testsuites>
@@ -15,6 +17,7 @@
1517
<whitelist>
1618
<directory suffix=".php">./</directory>
1719
<exclude>
20+
<directory>build</directory>
1821
<directory>vendor</directory>
1922
<directory>Tests</directory>
2023
</exclude>
@@ -26,7 +29,8 @@
2629
<ini name="session.cookie_lifetime" value="42"/>
2730

2831
<env name="REDIS_SERVER_HOST" value="redis"/>
29-
<env name="MEMCACHED_POOL" value='[["memcached",11211]]'/>
32+
33+
<server name="HTTP_USER_AGENT" value="Koded/Session"/>
3034
</php>
3135

3236
<logging>

0 commit comments

Comments
 (0)