Fhaculty\Graph\Tests\Edge\EdgeBaseTest::testLoop PHP Method

testLoop() public method

public testLoop ( )
    public function testLoop()
    {
        $edge = $this->createEdgeLoop();
        $this->assertTrue($edge->isLoop());
        $this->assertEquals(array($this->v1, $this->v1), $edge->getVertices()->getVector());
        $this->assertSame($this->v1, $edge->getVertexFromTo($this->v1));
        $this->assertSame($this->v1, $edge->getVertexToFrom($this->v1));
    }