Example #1
0
 public function testPartial()
 {
     $source = $this->makePattern();
     $source->normalizedPath = "one/two";
     $pattern = new Pattern($source);
     $this->assertEquals('one-two', $pattern->getPartial());
 }
Example #2
0
 public function testPartialDoesntHaveDigits()
 {
     $pattern = new Pattern('01-one/02-two/03-three', __FILE__);
     $this->assertEquals('one-three', $pattern->getPartial());
 }