Skip to content

Commit b36954d

Browse files
committed
fix following change applied on graphp/graph master branch (graphp/graph#195)
1 parent 920035c commit b36954d

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ using the [Keep a CHANGELOG](http://keepachangelog.com) principles.
66

77
## [Unreleased]
88

9+
## [1.0.0-rc.2] - 2020-09-10
10+
11+
### Fixed
12+
13+
* synchronize with `graphp/graph` master branch (still under development) and fix it to commit [214de45](https://github.com/graphp/graph/commit/214de4572f0fa8a452addcf6135f87bfd3dec4ab)
14+
due to new feature
15+
- [Remove `Vertices` and `Edges` collection classes, use plain arrays instead](https://github.com/graphp/graph/pull/195)
16+
917
## [1.0.0-rc.1] - 2020-05-30
1018

1119
### Fixed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.1.3",
14-
"graphp/graph": "dev-master as 1.0.0",
14+
"graphp/graph": "dev-master#214de45 as 1.0.0",
1515
"graphp/graphviz": "dev-subgraph_cluster_attributes as 1.0.0"
1616
},
1717
"repositories": [

tests/ClassDiagramBuilderTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,13 @@ public function testGraphHasEdges()
144144
public function testGraphHasEdgesConnection()
145145
{
146146
$vertex = $this->builder->createVertexClass(ClassDiagramBuilder::class);
147-
$parent = $this->graph->getVertices()->getVertexLast();
147+
$vertices = $this->graph->getVertices();
148+
$parent = end($vertices);
148149
$edges = $this->graph->getEdges();
149150

150-
$this->assertTrue($edges->getEdgeFirst()->hasVertexStart($vertex));
151-
$this->assertTrue($edges->getEdgeFirst()->hasVertexTarget($parent));
151+
$edgeFirst = reset($edges);
152+
153+
$this->assertTrue($edgeFirst->hasVertexStart($vertex));
154+
$this->assertTrue($edgeFirst->hasVertexTarget($parent));
152155
}
153156
}

0 commit comments

Comments
 (0)