public function testConstructor() { $v2 = new Vertex($this->graph, 2); $this->assertCount(2, $this->graph->getVertices()); $this->assertTrue($this->graph->hasVertex(2)); $this->assertSame($v2, $this->graph->getVertex(2)); }