Example #1
0
 public function testFloatConversion()
 {
     $this->assertEquals('<double:42.01>', $this->converter->convertToString(42.01));
 }
Example #2
0
 /**
  * @return string
  */
 public function __toString()
 {
     $converter = new Phake_String_Converter();
     $arguments = array();
     foreach ($this->arguments as $argument) {
         $arguments[] = $converter->convertToString($argument);
     }
     $name = Phake::getName($this->object);
     $access = is_string($this->object) ? '::' : '->';
     return "{$name}{$access}{$this->method}(" . implode(', ', $arguments) . ")";
 }
Example #3
0
 /**
  * @return string
  */
 public function __toString()
 {
     $converter = new Phake_String_Converter();
     return "equal to {$converter->convertToString($this->value)}";
 }