From a3b49ae44f1c8f584c06a9e6579b9b32bb612ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sun, 15 May 2016 22:15:48 +0200 Subject: [PATCH] Enhancement: Assert that no warning is issued when using exact version constraint for unstable package --- .../Package/Loader/ValidatingArrayLoaderTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php b/tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php index 4654fc4fc..5af956fe4 100644 --- a/tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php +++ b/tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php @@ -326,6 +326,18 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase ), false, ), + array( + array( + 'name' => 'foo/bar', + 'require' => array( + 'bar/unstable' => '0.3.0', + ), + ), + array( + // using an exact version constraint for an unstable version should not trigger a warning + ), + false, + ), array( array( 'name' => 'foo/bar',