/** * @param string $path * @return string */ private function processPath($path) { if (\Bloge\endsWith($path, 'index')) { $path .= '.html'; } if (!\Bloge\hasExtension($path)) { $path .= '/index.html'; } return chop($path, '/'); }
/** * @dataProvider endsWith */ public function testEndsWith($string, $with) { $this->assertTrue(Bloge\endsWith($string, $with)); }