Пример #1
0
 public function testPath()
 {
     $source = $this->makePattern();
     $source->path = "one/two/three";
     $pattern = new Pattern($source);
     $this->assertEquals("one-two-three/one-two-three.html", $pattern->getPath());
 }
Пример #2
0
 public function testPathHasDigits()
 {
     $pattern = new Pattern('01-one/02-two/03-three', __FILE__);
     $this->assertEquals('01-one/02-two/03-three', $pattern->getPath());
 }