mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-06 15:55:50 +01:00
run test suit using composer autoload
Other improvements: - Move phpunit.xml to phpunit.xml.dist - Remove deprecated Tests/bootstrap.php
This commit is contained in:
parent
00f1503a44
commit
accd7c7ecf
@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
if (preg_match('#^DesignPatterns\\\\(.+)$#', $class, $ret)) {
|
||||
$relPath = str_replace('\\', DIRECTORY_SEPARATOR, $ret[1]);
|
||||
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . $relPath . '.php';
|
||||
}
|
||||
});
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit bootstrap="Tests/bootstrap.php" colors="true">
|
||||
<phpunit bootstrap="./vendor/autoload.php" colors="true">
|
||||
|
||||
<testsuites>
|
||||
<testsuite name="Design Patterns tests">
|
||||
<testsuite name="Design Patterns">
|
||||
<directory>./Tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
Loading…
x
Reference in New Issue
Block a user