public function testNewMarker()
 {
     $injector = new TextInjector();
     $foo = $injector->newMarker('foo');
     $bar = $injector->newMarker('bar', 1, 2, 3);
     $markers = $injector->getMarkers();
     $this->assertArrayHasKey($foo, $markers);
     $this->assertEquals(array('foo'), $markers[$foo]);
     $this->assertArrayHasKey($bar, $markers);
     $this->assertEquals(array('bar', 1, 2, 3), $markers[$bar]);
 }
 /**
  * Returns the placeholder map build while generating HTML.
  * The map returned here may be used with TextInjector.
  *
  * @return array[] string -> array
  */
 public function getPlaceholders()
 {
     return $this->textInjector->getMarkers();
 }