Skip to content

Commit 356878b

Browse files
FlorianLBFlorianLB
FlorianLB
authored and
FlorianLB
committed
[test] init test
1 parent d49ec49 commit 356878b

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

phpunit.xml.dist

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
4+
<testsuites>
5+
<testsuite name="Ruler Test Suite">
6+
<directory suffix="Test.php">./tests/CleverAge/Ruler/Test/</directory>
7+
</testsuite>
8+
</testsuites>
9+
10+
<filter>
11+
<whitelist>
12+
<directory suffix=".php">./src/CleverAge/Ruler/</directory>
13+
</whitelist>
14+
</filter>
15+
</phpunit>

tests/bootstrap.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
if (!$loader = @include __DIR__.'/../vendor/autoload.php') {
4+
echo <<<EOM
5+
You must set up the project autoloader by running the following commands:
6+
7+
curl -s http://getcomposer.org/installer | php
8+
php composer.phar install
9+
10+
EOM;
11+
12+
exit(1);
13+
}
14+
15+
$loader->add('CleverAge\Ruler\Test', __DIR__);
16+
$loader->register();

0 commit comments

Comments
 (0)