__toString() публичный Метод

См. также: eZ\Publish\Core\FieldType\Value
public __toString ( )
Пример #1
0
 /**
  * @covers \eZ\Publish\Core\FieldType\Author\Value::__toString
  */
 public function testFieldValueToString()
 {
     $value = new AuthorValue($this->authors);
     $authorsName = array();
     foreach ($this->authors as $author) {
         $authorsName[] = $author->name;
     }
     self::assertSame(implode(', ', $authorsName), $value->__toString());
 }