public function testReplacementAccessorsWork() { $replacement = 'foo/bar'; $this->filter->setReplacement($replacement); $this->assertEquals($replacement, $this->filter->getReplacement()); }
public function testPassingReplacementToConstructorSetsReplacement() { $replace = 'foo/bar'; $filter = new PregReplaceFilter(null, $replace); $this->assertEquals($replace, $filter->getReplacement()); }