Beispiel #1
0
 /**
  * @return string The formatted parameter
  */
 public function format()
 {
     return $this->formatter->format($this->event, $this->parameter);
 }
 /**
  * @dataProvider dataFormat
  *
  * @param string $parameter
  * @param bool $allowHtml
  * @param bool $verbose
  */
 public function testFormat($parameter, $allowHtml, $verbose)
 {
     $instance = $this->getParameter($parameter);
     $this->formatter->expects($this->once())->method('format')->with($this->event, $parameter, $allowHtml, $verbose)->willReturn('formatted()');
     $this->assertSame('formatted()', $instance->format($allowHtml, $verbose));
 }
Beispiel #3
0
 /**
  * @param bool $allowHtml   Should HTML be used to format the parameter?
  * @param bool $verbose     Should paths, names, etc be shortened or full length
  * @return string The formatted parameter
  */
 public function format($allowHtml, $verbose = false)
 {
     return $this->formatter->format($this->event, $this->parameter, $allowHtml, $verbose);
 }