Skip to content

Commit 68c35fb

Browse files
committed
ADDED: PHPUnit Bootstrap file.
1 parent e34ec41 commit 68c35fb

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Tests/Bootstrap.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Test bootstrap file.
4+
*
5+
* @package TheWebSolver\Codegarage\Test
6+
*/
7+
8+
require_once dirname( __DIR__ ) . '/vendor/autoload.php';
9+
require_once __DIR__ . '/Stub/PsrStubs.php';
10+
11+
define(
12+
'CODEGARAGE_PSR_PACKAGE_INSTALLED',
13+
interface_exists( '\\Psr\\Http\\Server\\MiddlewareInterface' )
14+
);

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" verbose="false" bootstrap="./vendor/autoload.php" failOnWarning="false" convertErrorsToExceptions="false" convertNoticesToExceptions="false" convertWarningsToExceptions="false" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" stopOnRisky="false" backupGlobals="false" forceCoversAnnotation="false" beStrictAboutCoversAnnotation="true" beStrictAboutOutputDuringTests="true">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true" verbose="false" bootstrap="./Tests/Bootstrap.php" failOnWarning="false" convertErrorsToExceptions="false" convertNoticesToExceptions="false" convertWarningsToExceptions="false" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" stopOnRisky="false" backupGlobals="false" forceCoversAnnotation="false" beStrictAboutCoversAnnotation="true" beStrictAboutOutputDuringTests="true">
33
<coverage/>
44
<testsuites>
55
<testsuite name="Tests">

0 commit comments

Comments
 (0)