Permalink
Browse files

add phpunit to composer.json and allow laravel tests to be skipped.

  • Loading branch information...
1 parent 7d4bcd6 commit 6764efa227d0260c32a4a202b7f56db90ac3a551 @meadsteve meadsteve committed Oct 1, 2014
Showing with 9 additions and 2 deletions.
  1. +1 −2 composer.json
  2. +8 −0 tests/LaravelTestCase.php
View
@@ -18,8 +18,7 @@
],
"require-dev": {
"silex/silex": "~1.0",
- "illuminate/foundation": "~4.0",
- "illuminate/support": "~4.0"
+ "phpunit/phpunit": "~4.0"
},
"autoload": {
"psr-4": {
@@ -10,6 +10,14 @@
class LaravelTestCase extends TestCase
{
+ public function setUp()
+ {
+ parent::setUp();
+ if (!class_exists('\Illuminate\Foundation\Application')) {
+ $this->markTestSkipped("Can't test Laravel integration without Illuminate");
+ }
+ }
+
public function setupApplication($config = true)
{
$app = new Application();

0 comments on commit 6764efa

Please sign in to comment.