From a47be4b78f260eb2317e1106e9d81bbecc0c6a2f Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 22 Sep 2014 14:01:56 +0200 Subject: [PATCH] Fixed tests on Windows using bad path separators --- tests/Services/ThumbnailServiceTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Services/ThumbnailServiceTest.php b/tests/Services/ThumbnailServiceTest.php index 75ee6199..f5ee1dbf 100644 --- a/tests/Services/ThumbnailServiceTest.php +++ b/tests/Services/ThumbnailServiceTest.php @@ -63,7 +63,7 @@ class ThumbnailServiceTest extends \Szurubooru\Tests\AbstractTestCase ->method('load') ->withConsecutive( ['nope'], - ['thumbnails/blank.png']) + ['thumbnails' . DIRECTORY_SEPARATOR . 'blank.png']) ->will( $this->onConsecutiveCalls( null, @@ -82,7 +82,7 @@ class ThumbnailServiceTest extends \Szurubooru\Tests\AbstractTestCase $this->fileServiceMock ->expects($this->once()) ->method('save') - ->with('thumbnails/100x100/nope', 'generated thumbnail'); + ->with('thumbnails' . DIRECTORY_SEPARATOR . '100x100' . DIRECTORY_SEPARATOR . 'nope', 'generated thumbnail'); $thumbnailService = $this->getThumbnailService(); $thumbnailService->generate('nope', 100, 100); @@ -97,8 +97,8 @@ class ThumbnailServiceTest extends \Szurubooru\Tests\AbstractTestCase ->method('load') ->withConsecutive( ['nope'], - ['thumbnails/blank.png'], - ['thumbnails/blank.png']) + ['thumbnails' . DIRECTORY_SEPARATOR . 'blank.png'], + ['thumbnails' . DIRECTORY_SEPARATOR . 'blank.png']) ->will( $this->onConsecutiveCalls( null, @@ -118,7 +118,7 @@ class ThumbnailServiceTest extends \Szurubooru\Tests\AbstractTestCase $this->fileServiceMock ->expects($this->once()) ->method('save') - ->with('thumbnails/100x100/nope', 'content of blank thumbnail (2)'); + ->with('thumbnails' . DIRECTORY_SEPARATOR . '100x100' . DIRECTORY_SEPARATOR . 'nope', 'content of blank thumbnail (2)'); $thumbnailService = $this->getThumbnailService(); $thumbnailService->generate('nope', 100, 100);