/** * @dataProvider formatDirectoryPathProvider */ public function test_formatDirectoryPath_returnsTrimmedPathWithTrailingSlash($dir, $expected) { $actual = PathWorker::formatDirectoryPath($dir); $this->assertEquals($expected, $actual); }
/** * Sets the project's root directory path * * Validates path before setting it. * * @param $projectRootPath string Path to your project's root directory */ public function setProjectRootPath($projectRootPath) { $path = Formatter::formatDirectoryPath($projectRootPath); DirectoryWorker::checkIsValidDirectory($path, MockMakerErrors::INVALID_PROJECT_ROOT_PATH); $this->projectRootPath = $path; }