diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..60b195e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: php + +before_script: + - composer self-update + - composer install --dev --prefer-source + +php: + - 5.4 + - 5.5 + - hhvm diff --git a/composer.json b/composer.json index 913a3ad..725f2ea 100644 --- a/composer.json +++ b/composer.json @@ -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"] }, diff --git a/composer.lock b/composer.lock index 181bc0f..1dd0d9c 100644 --- a/composer.lock +++ b/composer.lock @@ -3,7 +3,7 @@ "This file locks the dependencies of your project to a known state", "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" ], - "hash": "86767e75cc7a2a10698f63989fc8ec16", + "hash": "3ce26ed73ecd1189b4fd467bf96d3fda", "packages": [ { "name": "symfony/http-foundation", @@ -59,7 +59,175 @@ } ], "packages-dev": [ - + { + "name": "whatthejeff/fab", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/whatthejeff/fab.git", + "reference": "1f9d9cdc354cabda0d7b72b7e2ab5fdfb747b8ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/whatthejeff/fab/zipball/1f9d9cdc354cabda0d7b72b7e2ab5fdfb747b8ef", + "reference": "1f9d9cdc354cabda0d7b72b7e2ab5fdfb747b8ef", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-0": { + "Fab": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + } + ], + "description": "Make your output fabulous!", + "homepage": "http://github.com/whatthejeff/fab", + "keywords": [ + "colorful", + "fab", + "fabulous", + "rainbow" + ], + "time": "2013-02-14 01:28:47" + }, + { + "name": "whatthejeff/nyancat-phpunit-resultprinter", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/whatthejeff/nyancat-phpunit-resultprinter.git", + "reference": "ccfa266c1991bcde1cf590b3de808b3465ca9b1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/whatthejeff/nyancat-phpunit-resultprinter/zipball/ccfa266c1991bcde1cf590b3de808b3465ca9b1d", + "reference": "ccfa266c1991bcde1cf590b3de808b3465ca9b1d", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "whatthejeff/nyancat-scoreboard": "~1.1" + }, + "require-dev": { + "pear-pear/pear": "1.9.4", + "phpunit/php-code-coverage": "1.3.*@dev", + "phpunit/php-file-iterator": ">=1.3.1@dev", + "phpunit/php-text-template": ">=1.1.1@dev", + "phpunit/php-timer": ">=1.1.0@dev", + "phpunit/phpunit": "3.8.*@dev", + "phpunit/phpunit-mock-objects": "1.3.*@dev", + "sebastian/diff": ">=1.0.0@dev", + "sebastian/exporter": ">=1.0.0@dev", + "sebastian/version": ">=1.0.0@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "psr-0": { + "NyanCat": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + } + ], + "description": "Nyan Cat result printer for PHPUnit", + "homepage": "http://github.com/whatthejeff/nyancat-phpunit-resultprinter", + "keywords": [ + "cat", + "nyan", + "phpunit", + "rainbow", + "tests" + ], + "time": "2013-10-30 06:26:11" + }, + { + "name": "whatthejeff/nyancat-scoreboard", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/whatthejeff/nyancat-scoreboard.git", + "reference": "ab5e68605d4950f299684f4e161d56e96be6994c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/whatthejeff/nyancat-scoreboard/zipball/ab5e68605d4950f299684f4e161d56e96be6994c", + "reference": "ab5e68605d4950f299684f4e161d56e96be6994c", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "whatthejeff/fab": "~1.0" + }, + "require-dev": { + "pear-pear/pear": "1.9.4", + "phpunit/php-code-coverage": "1.3.*@dev", + "phpunit/phpunit": "3.8.*@dev", + "phpunit/phpunit-mock-objects": "1.3.*@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-0": { + "NyanCat": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + } + ], + "description": "Nyan Cat Scoreboard", + "homepage": "http://github.com/whatthejeff/nyancat-scoreboard", + "keywords": [ + "cat", + "nyan", + "rainbow", + "scoreboard", + "tests" + ], + "time": "2014-02-12 22:16:49" + } ], "aliases": [ diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..8fa0367 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,20 @@ + + + + + + ./tests/ + + + + + + ./src/ + + + diff --git a/tests/UniversalTest.php b/tests/UniversalTest.php new file mode 100644 index 0000000..f8629d8 --- /dev/null +++ b/tests/UniversalTest.php @@ -0,0 +1,12 @@ +assertTrue(true); + } +}