Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Aug 3, 2019
1 parent 6683cac commit 33c290f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/Binary/Loader/ChainLoaderTest.php
Expand Up @@ -164,7 +164,7 @@ private function getChainLoader(array $paths = [], array $loaders = null): Chain
* @param FileBinary|mixed $return
* @param string|null $message
*/
private function assertValidLoaderFindReturn($return, string $message = null): void
private function assertValidLoaderFindReturn($return, string $message = ''): void
{
$this->assertInstanceOf(FileBinary::class, $return, $message);
$this->assertStringStartsWith('text/', $return->getMimeType(), $message);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Binary/Loader/FileSystemLoaderTest.php
Expand Up @@ -205,7 +205,7 @@ private function getFileSystemLoader(array $roots = [], LocatorInterface $locato
* @param FileBinary|mixed $return
* @param string|null $message
*/
private function assertValidLoaderFindReturn($return, $message = null)
private function assertValidLoaderFindReturn($return, string $message = ''): void
{
$this->assertInstanceOf(FileBinary::class, $return, $message);
$this->assertStringStartsWith('text/', $return->getMimeType(), $message);
Expand Down
Expand Up @@ -94,7 +94,7 @@ protected function expectContainerLogMethodCalledOnce(\PHPUnit_Framework_MockObj
* @param Definition $definition
* @param string|null $message
*/
protected function assertDefinitionMethodCallsNone(Definition $definition, $message = null)
protected function assertDefinitionMethodCallsNone(Definition $definition, $message = '')
{
$this->assertDefinitionMethodCallCount(0, $definition, $message);
}
Expand All @@ -104,7 +104,7 @@ protected function assertDefinitionMethodCallsNone(Definition $definition, $mess
* @param Definition $definition
* @param string|null $message
*/
protected function assertDefinitionMethodCallCount($expect, Definition $definition, $message = null)
protected function assertDefinitionMethodCallCount($expect, Definition $definition, $message = '')
{
$this->assertCount($expect, $definition->getMethodCalls(), $message);
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/Binary/Locator/FileSystemLocatorTest.php
Expand Up @@ -100,7 +100,7 @@ private function assertBarBundleResourcesExist(LocatorInterface $locator, $only
* @param string $expectedContents
* @param string|null $message
*/
private function assertLocatedFileContentsStartsWith(LocatorInterface $locator, $filePath, $expectedContents, $message = null)
private function assertLocatedFileContentsStartsWith(LocatorInterface $locator, $filePath, $expectedContents, $message = '')
{
$this->assertStringStartsWith($expectedContents, file_get_contents($locator->locate($filePath)), $message);
}
Expand Down

0 comments on commit 33c290f

Please sign in to comment.