Location\LineTest::testCreateLine PHP 메소드

testCreateLine() 공개 메소드

public testCreateLine ( )
    public function testCreateLine()
    {
        $point1 = new Coordinate(52.5, 13.5);
        $point2 = new Coordinate(64.09999999999999, -21.9);
        $line = new Line($point1, $point2);
        $this->assertEquals($point1, $line->getPoint1());
        $this->assertEquals($point2, $line->getPoint2());
    }