public function testSetTargetByReferenceWorks()
 {
     $target = 'foo/:bar/:baz';
     $this->inflector->setTargetReference($target);
     $this->assertEquals('foo/:bar/:baz', $this->inflector->getTarget());
     $target .= '/:bat';
     $this->assertEquals('foo/:bar/:baz/:bat', $this->inflector->getTarget());
 }
Beispiel #2
0
 public function testPassingTargetToConstructorSetsTarget()
 {
     $inflector = new InflectorFilter('foo/:bar/:baz');
     $this->assertEquals('foo/:bar/:baz', $inflector->getTarget());
 }