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

testRemoveWithLoop() public method

public testRemoveWithLoop ( )
    public function testRemoveWithLoop()
    {
        $edge = $this->createEdgeLoop();
        $this->assertEquals(array($this->edge, $edge), $this->graph->getEdges()->getVector());
        $edge->destroy();
        $this->assertEquals(array($this->edge), $this->graph->getEdges()->getVector());
        $this->assertEquals(array($this->v1, $this->v2), $this->graph->getVertices()->getVector());
    }