Minor refactoring

This commit is contained in:
Meritoo
2019-03-04 18:52:56 +01:00
parent 2247000a8a
commit c175fcd126
19 changed files with 82 additions and 80 deletions

View File

@@ -35,7 +35,7 @@ class EmptyFileExceptionTest extends BaseTestCase
public function testMessage($emptyFilePath, $expectedMessage)
{
$exception = EmptyFileException::create($emptyFilePath);
static::assertEquals($expectedMessage, $exception->getMessage());
static::assertSame($expectedMessage, $exception->getMessage());
}
/**

View File

@@ -28,6 +28,6 @@ class EmptyFilePathExceptionTest extends BaseTestCase
public function testConstructorMessage()
{
$exception = EmptyFilePathException::create();
static::assertEquals('Path of the file is empty. Did you provide path of proper file?', $exception->getMessage());
static::assertSame('Path of the file is empty. Did you provide path of proper file?', $exception->getMessage());
}
}

View File

@@ -35,7 +35,7 @@ class NotExistingFileExceptionTest extends BaseTestCase
public function testConstructorMessage($notExistingFilePath, $expectedMessage)
{
$exception = NotExistingFileException::create($notExistingFilePath);
static::assertEquals($expectedMessage, $exception->getMessage());
static::assertSame($expectedMessage, $exception->getMessage());
}
/**