예제 #1
0
 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());
 }
예제 #2
0
 public function testPassingTargetToConstructorSetsTarget()
 {
     $inflector = new InflectorFilter('foo/:bar/:baz');
     $this->assertEquals('foo/:bar/:baz', $inflector->getTarget());
 }