From c4d55aa38779da14caec833d2e65ca04d9bb75d3 Mon Sep 17 00:00:00 2001 From: Dennis Meckel Date: Tue, 14 Feb 2017 08:22:52 +0100 Subject: [PATCH] 1.0.0 --- CHANGELOG.md | 5 +++++ src/WzItem.php | 2 +- tests/Factory/WzClassificationFactoryTest.php | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c217d41..f63fb2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ This project adheres to [Semantic Versioning](http://semver.org). No notable changes. +## [1.0.0] - 2017-02-14 + +No notable changes. + ## [1.0.0-rc2] - 2017-02-13 The release candidate introduces backward compatibility breaking changes @@ -49,4 +53,5 @@ but also streamlines the API and removes feature creep. Initial release. [Unreleased]: https://github.com/Rayne/wz2008-graph/compare/1.0.0-rc2...HEAD +[1.0.0]: https://github.com/Rayne/wz2008-graph/compare/1.0.0-rc2...1.0.0 [1.0.0-rc2]: https://github.com/Rayne/wz2008-graph/compare/1.0.0-rc1...1.0.0-rc2 diff --git a/src/WzItem.php b/src/WzItem.php index f1a4a9a..27b0b0c 100644 --- a/src/WzItem.php +++ b/src/WzItem.php @@ -170,7 +170,7 @@ public function getChildrenByLevel($level) $result = []; - $queue = new SplQueue(); + $queue = new SplQueue; $queue->enqueue($this); while (!$queue->isEmpty()) { diff --git a/tests/Factory/WzClassificationFactoryTest.php b/tests/Factory/WzClassificationFactoryTest.php index af4d75a..68eb479 100644 --- a/tests/Factory/WzClassificationFactoryTest.php +++ b/tests/Factory/WzClassificationFactoryTest.php @@ -11,6 +11,7 @@ use InvalidArgumentException; use Rayne\wz2008\Graph\Test\AssetTestCase; +use Rayne\wz2008\Graph\WzClassificationInterface; use Rayne\wz2008\Graph\WzItemInterface; class WzClassificationFactoryTest extends AssetTestCase @@ -40,7 +41,9 @@ public function testInvalidXmlFile($file) public function testDefaultClassification() { - WzClassificationFactory::build(); + $this->assertInstanceOf( + WzClassificationInterface::class, + WzClassificationFactory::build()); } public function testDefaultClassification_Count()