public function testToString() { $name = new Name('foo\\bar'); $this->assertSame('foo\\bar', (string) $name); $this->assertSame('foo\\bar', $name->toString()); }