PhpParser\Node\NameTest::testToString PHP Method

testToString() public method

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