diff --git a/tests/Integration/RequireTest.php b/tests/Integration/RequireTest.php index 9e573c5..36e7cc7 100644 --- a/tests/Integration/RequireTest.php +++ b/tests/Integration/RequireTest.php @@ -2,10 +2,21 @@ namespace Violinist\ComposerUpdater\Tests\Integration; +use Violinist\ComposerUpdater\Exception\NotUpdatedException; + class RequireTest extends IntegrationBase { protected $package = 'drupal/captcha'; protected $directory = 'drupal-captcha'; protected $useUpdate = false; protected $newVersion = '2.0.5'; + + public function testEndToEnd() + { + if (version_compare(phpversion(), "7.3.0", "<")) { + $this->expectException(NotUpdatedException::class); + } + parent::testEndToEnd(); + } + }