Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gigo6000 committed Oct 29, 2012
1 parent 9bdbb71 commit 10cfdb5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Tests/bootstrap.php
@@ -0,0 +1,14 @@
<?php

function includeIfExists($file)
{
if (file_exists($file)) {
return include $file;
}
}

if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../../../autoload.php'))) {
die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
'php composer.phar install'.PHP_EOL);
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="false" bootstrap="vendor/autoload.php">
<phpunit colors="false" bootstrap="Tests/bootstrap.php">
<testsuites>
<testsuite name="DevtimeBackboneBundle Test Suite">
<directory suffix="Test.php">./Tests/</directory>
Expand Down

0 comments on commit 10cfdb5

Please sign in to comment.