Skip to content

Commit 9c2feb7

Browse files
committed
Basic test added
1 parent 84c28cb commit 9c2feb7

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
vendor
22
composer.lock
3-
.idea
3+
.idea
4+
/build/

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ before-install:
2424
install:
2525
- COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction
2626

27+
script:
28+
- phpunit
29+
2730
notifications:
2831
email:
2932
on_success: always

composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"symfony/http-foundation": ">=2.8.0",
3030
"illuminate/pagination": ">=5.0.0"
3131
},
32+
"require-dev": {
33+
"phpunit/phpunit": "~4.0"
34+
},
3235
"autoload": {
3336
"psr-4": {
3437
"Webklex\\PHPIMAP\\": "src"
@@ -39,6 +42,9 @@
3942
"Tests\\": "tests"
4043
}
4144
},
45+
"scripts": {
46+
"test": "phpunit"
47+
},
4248
"extra": {
4349
"branch-alias": {
4450
"dev-master": "1.0-dev"

phpunit.xml.dist

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Helpers Test Suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
<logging>
23+
<log type="tap" target="build/report.tap"/>
24+
<log type="junit" target="build/report.junit.xml"/>
25+
<log type="coverage-html" target="build/coverage"/>
26+
<log type="coverage-text" target="build/coverage.txt"/>
27+
<log type="coverage-clover" target="build/logs/clover.xml"/>
28+
</logging>
29+
</phpunit>

0 commit comments

Comments
 (0)