From 452a4ec458a454f02fa24a2e01ddc57e8933cfd1 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Tue, 31 Oct 2017 21:26:39 +0100 Subject: [PATCH] Tests - BaseTestCase - rename method getFilePathToTests() -> getFilePathForTesting() --- src/Test/Base/BaseTestCase.php | 2 +- tests/Utilities/ComposerTest.php | 2 +- tests/Utilities/MimeTypesTest.php | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Test/Base/BaseTestCase.php b/src/Test/Base/BaseTestCase.php index 0027bd9..21ff51f 100644 --- a/src/Test/Base/BaseTestCase.php +++ b/src/Test/Base/BaseTestCase.php @@ -111,7 +111,7 @@ abstract class BaseTestCase extends TestCase * @param string $directoryPath (optional) Path of directory containing the file * @return string */ - public function getFilePathToTests($fileName, $directoryPath = '') + public function getFilePathForTesting($fileName, $directoryPath = '') { $rootPath = Miscellaneous::getProjectRootPath(); diff --git a/tests/Utilities/ComposerTest.php b/tests/Utilities/ComposerTest.php index 24d056c..72d5881 100644 --- a/tests/Utilities/ComposerTest.php +++ b/tests/Utilities/ComposerTest.php @@ -88,6 +88,6 @@ class ComposerTest extends BaseTestCase { parent::setUp(); - $this->composerJsonPath = $this->getFilePathToTests(Composer::FILE_NAME_MAIN); + $this->composerJsonPath = $this->getFilePathForTesting(Composer::FILE_NAME_MAIN); } } diff --git a/tests/Utilities/MimeTypesTest.php b/tests/Utilities/MimeTypesTest.php index 99dc34f..4452ec2 100644 --- a/tests/Utilities/MimeTypesTest.php +++ b/tests/Utilities/MimeTypesTest.php @@ -447,12 +447,12 @@ class MimeTypesTest extends BaseTestCase public function provideFilePathToGetMimeTypeOfRealFile() { yield[ - $this->getFilePathToTests('minion.jpg'), + $this->getFilePathForTesting('minion.jpg'), 'image/jpeg', ]; yield[ - $this->getFilePathToTests('lorem-ipsum.txt'), + $this->getFilePathForTesting('lorem-ipsum.txt'), 'text/plain', ]; } @@ -465,12 +465,12 @@ class MimeTypesTest extends BaseTestCase public function provideExistingFilePathToCheckIsImagePath() { yield[ - $this->getFilePathToTests('minion.jpg'), + $this->getFilePathForTesting('minion.jpg'), true, ]; yield[ - $this->getFilePathToTests('lorem-ipsum.txt'), + $this->getFilePathForTesting('lorem-ipsum.txt'), false, ]; }