Skip to content

Commit d2895d1

Browse files
committed
Added unit test to demonstrate travis-ci
1 parent c7650ff commit d2895d1

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

travis-ci/phpunit.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<phpunit colors="true" strict="true" verbose="true">
2+
<testsuites>
3+
<testsuite name="all">
4+
<directory>tests</directory>
5+
</testsuite>
6+
</testsuites>
7+
</phpunit>
8+

travis-ci/src/LoudTranslator.php

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
include 'Translator.php';
4+
5+
class LoudTranslator implements Translator {
6+
}
7+

travis-ci/src/Translator.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
interface Translator {
4+
public function translate($str);
5+
}
6+
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
class LoudTranslatorTest extends PHPUnit_Framework_TestCase {
4+
5+
/**
6+
* @test
7+
*/
8+
public function doit() {
9+
$this->assertTrue(false);
10+
}
11+
}

0 commit comments

Comments
 (0)