示例#1
0
 public function testToString()
 {
     $name = $this->readAttribute($this->object, 'name');
     $value = $this->readAttribute($this->object, 'value');
     $string = sprintf('%s: %s', $name, $value);
     $this->assertEquals($string, $this->object->toString());
 }