Bitpay\PointTest::testToString PHP Method

testToString() public method

public testToString ( )
    public function testToString()
    {
        $point = new Point(1, 2);
        $this->assertNotNull($point);
        $this->assertSame('(1, 2)', (string) $point);
        $point = new Point(PointInterface::INFINITY, PointInterface::INFINITY);
        $this->assertSame(PointInterface::INFINITY, (string) $point);
    }