diff --git a/src/Zf2ComponentsList.php b/src/Zf2ComponentsList.php index 7bce212..55e9e1d 100644 --- a/src/Zf2ComponentsList.php +++ b/src/Zf2ComponentsList.php @@ -87,6 +87,8 @@ public function scan($project) } } + ksort($this->components); + return $this; } diff --git a/test/Zf2ComponentsListTest.php b/test/Zf2ComponentsListTest.php index b439b48..993d522 100644 --- a/test/Zf2ComponentsListTest.php +++ b/test/Zf2ComponentsListTest.php @@ -1,5 +1,4 @@ assertEquals( + $this->assertSame( $zf2ComponentsListGenerator->scan(__DIR__ . '/' . self::TEST_PROJECT) ->getComponents(), array( @@ -22,10 +21,10 @@ public function testScan() "zend-cache" => true, "zend-captcha" => true, "zend-code" => true, + "zend-config" => true, "zend-console" => true, - "zend-stdlib" => true, "zend-log" => true, - "zend-config" => true, + "zend-stdlib" => true, ) ); }