Skip to content

Commit 827dd21

Browse files
committed
Fix mock class naming mismatch
1 parent 498dd80 commit 827dd21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/ConfigFormatConverterTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Tuck\ConverterBundle\Dumper\StandardDumperFactory;
77
use Tuck\ConverterBundle\File\SysTempFileFactory;
88
use Tuck\ConverterBundle\Loader\StandardLoaderFactory;
9-
use Tuck\ConverterBundle\Tests\File\MockSysTempFileFactory;
9+
use Tuck\ConverterBundle\Tests\File\MockTempFileFactory;
1010

1111
class ConfigFormatConverterTest extends \PHPUnit_Framework_TestCase
1212
{
@@ -80,7 +80,7 @@ public function testCanConvertString()
8080
public function testTempFileIsCleanedUpAfterConversion()
8181
{
8282
// Same setup but with a mock temp file factory that shows us the temp file name used
83-
$mockTempFileFactory = new MockSysTempFileFactory();
83+
$mockTempFileFactory = new MockTempFileFactory();
8484
$converter = new ConfigFormatConverter(new StandardLoaderFactory(), new StandardDumperFactory(), $mockTempFileFactory);
8585

8686
// Make sure the file gets removed, even if the test fails so it doesn't jam the next run

Tests/File/TempFileFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testAddingAnExtensionWorks()
4949
public function testThrowsExceptionWhenTempFileAlreadyExists()
5050
{
5151
// This factory always creates the same file name...
52-
$factory = new MockSysTempFileFactory();
52+
$factory = new MockTempFileFactory();
5353

5454
// ...so running it twice here should thrown an exception
5555
$this->tempFile = $factory->createFile();

0 commit comments

Comments
 (0)