Skip to content

Commit d83d2a9

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Use createMock() instead of a getter [ErrorHandler] Fix strpos error when trying to call a method without a name use proper keys to not override appended files Fix console logger according to PSR-3
2 parents c2c234d + 6a57cde commit d83d2a9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Tests/Mapping/Loader/FilesLoaderTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ class FilesLoaderTest extends TestCase
2121
{
2222
public function testCallsGetFileLoaderInstanceForeachPath()
2323
{
24-
$loader = $this->getFilesLoader($this->getFileLoader());
24+
$loader = $this->getFilesLoader($this->createMock(LoaderInterface::class));
2525
$this->assertEquals(4, $loader->getTimesCalled());
2626
}
2727

2828
public function testCallsActualFileLoaderForMetadata()
2929
{
30-
$fileLoader = $this->getFileLoader();
30+
$fileLoader = $this->createMock(LoaderInterface::class);
3131
$fileLoader->expects($this->exactly(4))
3232
->method('loadClassMetadata');
3333
$loader = $this->getFilesLoader($fileLoader);
@@ -43,9 +43,4 @@ public function getFilesLoader(LoaderInterface $loader)
4343
__DIR__.'/constraint-mapping.txt',
4444
], $loader]);
4545
}
46-
47-
public function getFileLoader()
48-
{
49-
return $this->createMock(LoaderInterface::class);
50-
}
5146
}

0 commit comments

Comments
 (0)