public function testFloatConversion() { $this->assertEquals('<double:42.01>', $this->converter->convertToString(42.01)); }
/** * @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) . ")"; }
/** * @return string */ public function __toString() { $converter = new Phake_String_Converter(); return "equal to {$converter->convertToString($this->value)}"; }