Skip to content

Commit 8a980da

Browse files
committed
Started framworking out the test
1 parent b9ccc99 commit 8a980da

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

Diff for: .travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Borrowing this from stripe
2+
language: php
3+
4+
php:
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
- 7.0
9+
- hhvm
10+
11+
script: ./vendor/autoload.php

Diff for: composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
"psr-4" : {
2020
"NeverBounce\\API\\": "src/api/"
2121
}
22+
},
23+
"require-dev": {
24+
"phpunit/phpunit": "^4.8"
2225
}
2326
}

Diff for: phpunit.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<phpunit bootstrap="tests/bootstrap.php" colors="true">
2+
<testsuites>
3+
<testsuite name="NeverBounce PHP Test Suite">
4+
<directory suffix="Test.php">tests</directory>
5+
</testsuite>
6+
</testsuites>
7+
<filter>
8+
<whitelist>
9+
<directory>src</directory>
10+
</whitelist>
11+
</filter>
12+
</phpunit>

Diff for: tests/SampleTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
class SampleTest extends PHPUnit_Framework_TestCase {
4+
5+
public function testTrue()
6+
{
7+
$this->assertTrue(0 === 0);
8+
}
9+
10+
}

Diff for: tests/bootstrap.php

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
// Nothing here for now

0 commit comments

Comments
 (0)