Exemplo n.º 1
0
Arquivo: HTML.php Projeto: bloge/bloge
 /**
  * @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, '/');
 }
Exemplo n.º 2
0
 /**
  * @dataProvider endsWith
  */
 public function testEndsWith($string, $with)
 {
     $this->assertTrue(Bloge\endsWith($string, $with));
 }