function it_should_present_a_tagged_exception_trace_function(ValuePresenter $valuePresenter)
 {
     $valuePresenter->presentValue('a')->willReturn('zaz');
     $valuePresenter->presentValue('b')->willReturn('zbz');
     $result = '   <trace><trace-func>function</trace-func>' . '(<trace-args><value>zaz</value>, <value>zbz</value></trace-args>)</trace>';
     $this->presentExceptionTraceFunction('function', array('a', 'b'))->shouldReturn($result);
 }
 function it_should_present_an_exception_trace_function(ValuePresenter $valuePresenter)
 {
     $valuePresenter->presentValue('a')->willReturn('zaz');
     $valuePresenter->presentValue('b')->willReturn('zbz');
     $this->presentExceptionTraceFunction('function', array('a', 'b'))->shouldReturn('   function(zaz, zbz)');
 }
Example #3
0
 /**
  * @param mixed $value
  *
  * @return string
  */
 public function presentValue($value)
 {
     return $this->valuePresenter->presentValue($value);
 }
Example #4
0
 function it_should_be_a_proxy_for_a_value_presenter(ValuePresenter $valuePresenter)
 {
     $valuePresenter->presentValue('foo')->willReturn('zfooz');
     $this->presentValue('foo')->shouldReturn('zfooz');
 }