Skip to content

Commit

Permalink
Add and use phpunit-bootstrap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hakito committed Nov 6, 2014
1 parent 7e0be19 commit 3a44587
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions phpunit-bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

if (file_exists('vendor/autoload.php'))
require_once 'vendor/autoload.php';
else if (file_exists('../../autoload.php'))
require_once '../../autoload.php';
else
echo "No autoload file found.";
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
<phpunit bootstrap="phpunit-bootstrap.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
Expand Down

0 comments on commit 3a44587

Please sign in to comment.