Beispiel #1
0
 /**
  * @return void
  */
 public function testToStringWithModifiersAndSingleValueReturnsFormattedValue()
 {
     $this->container->set('foo');
     $this->container->setPrefix('<li>')->setPostfix('</li>');
     $value = $this->container->toString();
     $this->assertEquals('<li>foo</li>', $value);
 }
Beispiel #2
0
 /**
  * Set title
  * @param string $title
  * @return \RtHeadtitle\Controller\Plugin\HeadTitle 
  */
 public function set($title = "")
 {
     $this->container->set($title);
     return $this;
 }