diff --git a/LICENSE b/LICENSE index 358d929a..59e34189 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ The MIT License (MIT) Copyright (c) 2012+ Christian Lück (Maintainer) -Copyright (c) 2012+ Fhaculty Core Team and our awesome contributors +Copyright (c) 2012+ Graphp Core Team and our awesome contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index aa12967f..233770ce 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Once [installed](#install), let's initialize a sample graph: ```php Vertex instance mapping array diff --git a/src/Vertex.php b/src/Vertex.php index baaef2de..ab1225fe 100644 --- a/src/Vertex.php +++ b/src/Vertex.php @@ -1,17 +1,17 @@ createAttributeAware(); - $this->assertInstanceOf('Fhaculty\Graph\Attribute\AttributeAware', $entity); + $this->assertInstanceOf('Graphp\Graph\Attribute\AttributeAware', $entity); return $entity; } @@ -38,6 +38,6 @@ public function testAttributeSetGetDefault(AttributeAware $entity) public function testAttributeBag(AttributeAware $entity) { $bag = $entity->getAttributeBag(); - $this->assertInstanceOf('Fhaculty\Graph\Attribute\AttributeBag', $bag); + $this->assertInstanceOf('Graphp\Graph\Attribute\AttributeBag', $bag); } } diff --git a/tests/Attribute/AttributeBagContainerTest.php b/tests/Attribute/AttributeBagContainerTest.php index 97332d1d..6d289073 100644 --- a/tests/Attribute/AttributeBagContainerTest.php +++ b/tests/Attribute/AttributeBagContainerTest.php @@ -1,8 +1,8 @@ getMockBuilder('Fhaculty\Graph\Walk') + $cycle = $this->getMockBuilder('Graphp\Graph\Walk') ->disableOriginalConstructor() ->getMock(); diff --git a/tests/GraphTest.php b/tests/GraphTest.php index a8bea3bb..f4b5ccb6 100644 --- a/tests/GraphTest.php +++ b/tests/GraphTest.php @@ -1,11 +1,11 @@ createVertex(); - $this->assertInstanceOf('\Fhaculty\Graph\Vertex', $vertex); + $this->assertInstanceOf('\Graphp\Graph\Vertex', $vertex); } /** @@ -100,7 +100,7 @@ public function testCanCreateVertexId() { $graph = new Graph(); $vertex = $graph->createVertex(11); - $this->assertInstanceOf('\Fhaculty\Graph\Vertex', $vertex); + $this->assertInstanceOf('\Graphp\Graph\Vertex', $vertex); $this->assertEquals(11, $vertex->getId()); } diff --git a/tests/Set/BaseVerticesTest.php b/tests/Set/BaseVerticesTest.php index 06b0a3ac..9ace06d1 100644 --- a/tests/Set/BaseVerticesTest.php +++ b/tests/Set/BaseVerticesTest.php @@ -1,11 +1,11 @@ createVertex(); $verticesFromArray = $this->createVertices(array($vertex)); - $this->assertInstanceOf('Fhaculty\Graph\Set\Vertices', $verticesFromArray); + $this->assertInstanceOf('Graphp\Graph\Set\Vertices', $verticesFromArray); $this->assertSame($vertex, $verticesFromArray->getVertexFirst()); $verticesFromVertices = Vertices::factory($verticesFromArray); @@ -140,7 +140,7 @@ public function testTwoAsMap(Vertices $vertices) { $distinct = $vertices->getVerticesDistinct(); - $this->assertInstanceOf('Fhaculty\Graph\Set\VerticesMap', $distinct); + $this->assertInstanceOf('Graphp\Graph\Set\VerticesMap', $distinct); $this->assertEquals(2, count($distinct)); $this->assertEquals(array(1, 2), $distinct->getIds()); } @@ -154,12 +154,12 @@ public function testTwoRandom(Vertices $vertices) { $vertexRandom = $vertices->getVertexOrder(Vertices::ORDER_RANDOM); - $this->assertInstanceOf('Fhaculty\Graph\Vertex', $vertexRandom); + $this->assertInstanceOf('Graphp\Graph\Vertex', $vertexRandom); $this->assertTrue($vertices->hasVertexId($vertexRandom->getId())); $verticesRandom = $vertices->getVerticesOrder(Vertices::ORDER_RANDOM); - $this->assertInstanceOf('Fhaculty\Graph\Set\Vertices', $verticesRandom); + $this->assertInstanceOf('Graphp\Graph\Set\Vertices', $verticesRandom); $this->assertEquals(2, count($verticesRandom)); } @@ -209,7 +209,7 @@ public function testOrderByGroup() $vertices = $graph->getVertices(); $verticesOrdered = $vertices->getVerticesOrder(Vertices::ORDER_GROUP); - $this->assertInstanceOf('Fhaculty\Graph\Set\Vertices', $verticesOrdered); + $this->assertInstanceOf('Graphp\Graph\Set\Vertices', $verticesOrdered); $this->assertEquals(1, $verticesOrdered->getVertexFirst()->getGroup()); $this->assertEquals(200, $verticesOrdered->getVertexLast()->getGroup()); diff --git a/tests/Set/EdgesTest.php b/tests/Set/EdgesTest.php index df0b0902..d07a1169 100644 --- a/tests/Set/EdgesTest.php +++ b/tests/Set/EdgesTest.php @@ -1,11 +1,11 @@ createEdgeTo($v1); $edgesFromArray = $this->createEdges(array($e1)); - $this->assertInstanceOf('Fhaculty\Graph\Set\Edges', $edgesFromArray); + $this->assertInstanceOf('Graphp\Graph\Set\Edges', $edgesFromArray); $this->assertSame($e1, $edgesFromArray->getEdgeFirst()); $edgesFromEdges = Edges::factory($edgesFromArray); @@ -143,7 +143,7 @@ public function testTwoAsMap(Edges $edges) { $distinct = $edges->getEdgesDistinct(); - $this->assertInstanceOf('Fhaculty\Graph\Set\Edges', $distinct); + $this->assertInstanceOf('Graphp\Graph\Set\Edges', $distinct); $this->assertEquals(2, count($distinct)); } @@ -156,12 +156,12 @@ public function testTwoRandom(Edges $edges) { $edgeRandom = $edges->getEdgeOrder(Edges::ORDER_RANDOM); - $this->assertInstanceOf('Fhaculty\Graph\Edge\Base', $edgeRandom); + $this->assertInstanceOf('Graphp\Graph\Edge\Base', $edgeRandom); $edges->getEdgeIndex($edges->getIndexEdge($edgeRandom)); $edgesRandom = $edges->getEdgesOrder(Edges::ORDER_RANDOM); - $this->assertInstanceOf('Fhaculty\Graph\Set\Edges', $edgesRandom); + $this->assertInstanceOf('Graphp\Graph\Set\Edges', $edgesRandom); $this->assertEquals(2, count($edgesRandom)); } @@ -265,7 +265,7 @@ public function testOrderByGroup() $edges = $graph->getEdges(); $edgesOrdered = $edges->getEdgesOrder(Edges::ORDER_WEIGHT); - $this->assertInstanceOf('Fhaculty\Graph\Set\Edges', $edgesOrdered); + $this->assertInstanceOf('Graphp\Graph\Set\Edges', $edgesOrdered); $this->assertEquals(1, $edgesOrdered->getEdgeFirst()->getWeight()); $this->assertEquals(200, $edgesOrdered->getEdgeLast()->getWeight()); diff --git a/tests/Set/VerticesMapTest.php b/tests/Set/VerticesMapTest.php index c3411401..7575e4bc 100644 --- a/tests/Set/VerticesMapTest.php +++ b/tests/Set/VerticesMapTest.php @@ -1,8 +1,8 @@ assertInstanceOf('Fhaculty\Graph\Set\Vertices', $vertices); + $this->assertInstanceOf('Graphp\Graph\Set\Vertices', $vertices); $this->assertTrue($vertices->isEmpty()); } @@ -50,13 +50,13 @@ public function testDuplicates() $vertices = $this->createVertices(array($v1, $v1, $v1)); - $this->assertInstanceOf('Fhaculty\Graph\Set\Vertices', $vertices); + $this->assertInstanceOf('Graphp\Graph\Set\Vertices', $vertices); $this->assertCount(3, $vertices); $this->assertTrue($vertices->hasDuplicates()); $verticesDistinct = $vertices->getVerticesDistinct(); - $this->assertInstanceOf('Fhaculty\Graph\Set\Vertices', $verticesDistinct); + $this->assertInstanceOf('Graphp\Graph\Set\Vertices', $verticesDistinct); $this->assertCount(1, $verticesDistinct); $this->assertFalse($verticesDistinct->hasDuplicates()); diff --git a/tests/TestCase.php b/tests/TestCase.php index 7d739787..f0cea6e4 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,11 +1,11 @@