Skip to content

Commit

Permalink
Fixes unit tests for case sensitive file systems
Browse files Browse the repository at this point in the history
We should be using the class compiler here eventually
  • Loading branch information
daftspunk committed Jul 25, 2015
1 parent dcdd205 commit 408c06a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
bootstrap="tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Expand Up @@ -10,7 +10,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
*/
public function createApplication()
{
$app = require_once __DIR__.'/../bootstrap/autoload.php';
$app = require __DIR__.'/../bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();

Expand Down
15 changes: 15 additions & 0 deletions tests/bootstrap.php
@@ -0,0 +1,15 @@
<?php

/*
* October autoloader
*/
require __DIR__ . '/../bootstrap/autoload.php';

/*
* Fallback autoloader
*/
October\Rain\Support\ClassLoader::register();
October\Rain\Support\ClassLoader::addDirectories([
__DIR__.'/../modules',
__DIR__.'/../plugins'
]);
2 changes: 1 addition & 1 deletion tests/unit/phpunit.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="../../bootstrap/autoload.php"
bootstrap="../bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down

0 comments on commit 408c06a

Please sign in to comment.