diff --git a/tests/Foundation/ClassLoaderTest.php b/tests/Foundation/ClassLoaderTest.php index b54a5e900338..998bceb10911 100644 --- a/tests/Foundation/ClassLoaderTest.php +++ b/tests/Foundation/ClassLoaderTest.php @@ -15,9 +15,9 @@ public function tearDown() public function testProperFilesAreCheckedByLoader() { $loader = new ClassLoader(array(__DIR__, __DIR__.'/Models'), $files = m::mock('Illuminate\Filesystem\Filesystem')); - $files->shouldReceive('exists')->once()->with(__DIR__.'/User/Model.php')->andReturn(false); - $files->shouldReceive('exists')->once()->with(__DIR__.'/Models/User/Model.php')->andReturn(true); - $files->shouldReceive('requireOnce')->once()->with(__DIR__.'/Models/User/Model.php'); + $files->shouldReceive('exists')->once()->with(__DIR__.'/User'.DIRECTORY_SEPARATOR.'Model.php')->andReturn(false); + $files->shouldReceive('exists')->once()->with(__DIR__.'/Models/User'.DIRECTORY_SEPARATOR.'Model.php')->andReturn(true); + $files->shouldReceive('requireOnce')->once()->with(__DIR__.'/Models/User'.DIRECTORY_SEPARATOR.'Model.php'); $this->assertTrue($loader->load('\\User\\Model')); } diff --git a/tests/Pagination/EnvironmentTest.php b/tests/Pagination/EnvironmentTest.php index 190e5dab4e9a..33c5af55cf5e 100644 --- a/tests/Pagination/EnvironmentTest.php +++ b/tests/Pagination/EnvironmentTest.php @@ -79,8 +79,7 @@ protected function getEnvironment() $request = m::mock('Illuminate\Http\Request'); $view = m::mock('Illuminate\View\Environment'); $trans = m::mock('Symfony\Component\Translation\TranslatorInterface'); - - $view->shouldReceive('addNamespace')->once()->with('pagination', realpath(__DIR__.'/../../src/Illuminate/Pagination/views')); + $view->shouldReceive('addNamespace')->once()->with('pagination', realpath(__DIR__.'/../../src/Illuminate/Pagination').'/views'); return new Environment($request, $view, $trans); }