예제 #1
0
 /**
  * Test recognizing that there are no date placeholder in path.
  */
 public function testHasNoChangingPath()
 {
     $path = '/tmp/foo/bar';
     $filename = 'foo-%d.txt';
     $target = new Target($path, $filename);
     $this->assertFalse($target->hasChangingPath(), 'path should be recognized as not changing');
     $this->assertEquals(0, $target->countChangingPathElements(), 'no changing path elements should be found');
 }