diff --git a/tests/Composer/Test/Fixtures/installer/github-issues-7051.test b/tests/Composer/Test/Fixtures/installer/github-issues-7051.test index 55e758441..1c17958ba 100644 --- a/tests/Composer/Test/Fixtures/installer/github-issues-7051.test +++ b/tests/Composer/Test/Fixtures/installer/github-issues-7051.test @@ -103,8 +103,7 @@ Solver Bug Exception caused by analyze on mutli conflict rule reported in GitHub "version": "v2.8.7" } ] - }, - "packagist.org": false + } } } --RUN-- diff --git a/tests/Composer/Test/Json/ComposerSchemaTest.php b/tests/Composer/Test/Json/ComposerSchemaTest.php index a6f85d4cf..9a7902dad 100644 --- a/tests/Composer/Test/Json/ComposerSchemaTest.php +++ b/tests/Composer/Test/Json/ComposerSchemaTest.php @@ -40,10 +40,9 @@ class ComposerSchemaTest extends TestCase public function testRequiredProperties() { $json = '{ }'; - $this->assertEquals(array( - array('property' => 'name', 'message' => 'The property name is required', 'constraint' => 'required'), - array('property' => 'description', 'message' => 'The property description is required', 'constraint' => 'required'), - ), $this->check($json)); + $result = $this->check($json); + $this->assertContains(array('property' => 'name', 'message' => 'The property name is required', 'constraint' => 'required'), $result); + $this->assertContains(array('property' => 'description', 'message' => 'The property description is required', 'constraint' => 'required'), $result); $json = '{ "name": "vendor/package" }'; $this->assertEquals(array(