Quellcode durchsuchen

Add a failing testcase for stability flags in complex constraints

Refs #3570
Christophe Coevoet vor 10 Jahren
Ursprung
Commit
267af928df
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php

+ 2 - 0
tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php

@@ -143,6 +143,7 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
                 'foo/bar' => '~2.1.0-beta2',
                 'bar/baz' => '1.0.x-dev as 1.2.0',
                 'qux/quux' => '1.0.*@rc',
+                'zux/complex' => '~1.0,>=1.0.2@dev'
             ),
             'minimum-stability' => 'alpha',
         ));
@@ -151,6 +152,7 @@ class RootPackageLoaderTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals(array(
             'bar/baz' => BasePackage::STABILITY_DEV,
             'qux/quux' => BasePackage::STABILITY_RC,
+            'zux/complex' => BasePackage::STABILITY_DEV,
         ), $package->getStabilityFlags());
     }
 }