Skip to content

Commit 2c29dd2

Browse files
committed
add phpunit setup
1 parent 5f74801 commit 2c29dd2

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: php
2+
php:
3+
- '5.4'
4+
- '5.5.9'
5+
- '5.5'
6+
- '5.6'
7+
- '7.0'
8+
- hhvm
9+
script:
10+
- vendor/bin/sclcheck src/
11+
- vendor/bin/phpunit
12+
install:
13+
- composer install
14+
cache:
15+
directories:
16+
- vendor

phpunit.xml.dist

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<phpunit
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
4+
backupGlobals="true"
5+
backupStaticAttributes="false"
6+
bootstrap="test/unit/bootstrap.php"
7+
cacheTokens="false"
8+
colors="true"
9+
convertErrorsToExceptions="true"
10+
convertNoticesToExceptions="true"
11+
convertWarningsToExceptions="true"
12+
forceCoversAnnotation="false"
13+
mapTestClassNameToCoveredClassName="true"
14+
printerClass="PHPUnit_TextUI_ResultPrinter"
15+
processIsolation="false"
16+
stopOnError="false"
17+
stopOnFailure="false"
18+
stopOnIncomplete="false"
19+
stopOnSkipped="false"
20+
stopOnRisky="false"
21+
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
22+
timeoutForSmallTests="1"
23+
timeoutForMediumTests="10"
24+
timeoutForLargeTests="60"
25+
verbose="false">
26+
<testsuites>
27+
<testsuite name="default">
28+
<directory>test/unit</directory>
29+
</testsuite>
30+
</testsuites>
31+
</phpunit>

test/unit/bootstrap.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
/**
3+
* This file is part of the Sclable Array Functions Package.
4+
* For the full license information, please read the LICENSE
5+
* file distributed with this source code.
6+
*/
7+
8+
require dirname(dirname(__DIR__)) . '/vendor/autoload.php';

0 commit comments

Comments
 (0)