From c3aef614fff5db442e51b0fe6243b7b82f331001 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 19 Jun 2014 13:15:57 +0200 Subject: [PATCH] update test for latest php versions --- core/lib/Thelia/Tests/Tools/FileManagerTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/lib/Thelia/Tests/Tools/FileManagerTest.php b/core/lib/Thelia/Tests/Tools/FileManagerTest.php index 9fe76878b..8c9de5965 100644 --- a/core/lib/Thelia/Tests/Tools/FileManagerTest.php +++ b/core/lib/Thelia/Tests/Tools/FileManagerTest.php @@ -787,7 +787,7 @@ class FileManagerTest extends \PHPUnit_Framework_TestCase ->getMock(); $stubUploadedFile = $this->getMockBuilder('\Symfony\Component\HttpFoundation\File\UploadedFile') - ->disableOriginalConstructor() + ->setConstructorArgs([__DIR__ . '/fixtures/test.xml', 'test.xml']) ->getMock(); $stubUploadedFile->expects($this->any()) ->method('getClientOriginalExtension') @@ -814,8 +814,9 @@ class FileManagerTest extends \PHPUnit_Framework_TestCase ->getMock(); $stubUploadedFile = $this->getMockBuilder('\Symfony\Component\HttpFoundation\File\UploadedFile') - ->disableOriginalConstructor() + ->setConstructorArgs([__DIR__ . '/fixtures/test.xml', 'test.xml']) ->getMock(); + $stubUploadedFile->expects($this->any()) ->method('getClientOriginalExtension') ->will($this->returnValue(''));