<?php ltrim(string $string, string $characters = " \n\r\t\v\x00"): string
<?php $rootPath = TestSuite::getInstance()->rootPath; $relativePath = str_replace($rootPath.DIRECTORY_SEPARATOR, '', $filename); $relativePath = ltrim($relativePath, DIRECTORY_SEPARATOR); $basename = basename($relativePath, '.php');