Skip to content

Commit

Permalink
ensure correctness through tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igorw committed Mar 15, 2014
1 parent 010b7c5 commit 7e1a068
Show file tree
Hide file tree
Showing 5 changed files with 215 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: php

before_script:
- composer self-update
- composer install --dev --prefer-source

php:
- 5.4
- 5.5
- hhvm
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"php": ">=5.4.0",
"symfony/http-foundation": "~2.4"
},
"require-dev": {
"whatthejeff/nyancat-phpunit-resultprinter": "~1.2"
},
"autoload": {
"files": ["src/yolo.php"]
},
Expand Down
172 changes: 170 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
printerFile="vendor/whatthejeff/nyancat-phpunit-resultprinter/src/NyanCat/PHPUnit/ResultPrinter.php"
printerClass="NyanCat\PHPUnit\ResultPrinter"
>
<testsuites>
<testsuite>
<directory>./tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src/</directory>
</whitelist>
</filter>
</phpunit>
12 changes: 12 additions & 0 deletions tests/UniversalTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace yolo;

class UniversalTest extends \PHPUnit_Framework_TestCase
{
/** @test */
function unifiedTheoryOfYolo()
{
$this->assertTrue(true);
}
}

0 comments on commit 7e1a068

Please sign in to comment.