Skip to content

Commit

Permalink
Skip end-to-end tests when opcache and/or vld are not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 24, 2024
1 parent 172577c commit 06b35ea
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/end-to-end/file-does-not-exist.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
--TEST--
foal does-not-exist.php
--SKIPIF--
<?php declare(strict_types=1);
if (!extension_loaded('Zend OPcache')) print 'skip: opcache not loaded' . PHP_EOL;
if (!extension_loaded('vld')) print 'skip: vld not loaded' . PHP_EOL;
--FILE--
<?php declare(strict_types=1);
namespace SebastianBergmann\FOAL\CLI;
Expand Down
4 changes: 4 additions & 0 deletions tests/end-to-end/file-not-specified.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
--TEST--
foal
--SKIPIF--
<?php declare(strict_types=1);
if (!extension_loaded('Zend OPcache')) print 'skip: opcache not loaded' . PHP_EOL;
if (!extension_loaded('vld')) print 'skip: vld not loaded' . PHP_EOL;
--FILE--
<?php declare(strict_types=1);
namespace SebastianBergmann\FOAL\CLI;
Expand Down
4 changes: 4 additions & 0 deletions tests/end-to-end/help.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
--TEST--
foal --help
--SKIPIF--
<?php declare(strict_types=1);
if (!extension_loaded('Zend OPcache')) print 'skip: opcache not loaded' . PHP_EOL;
if (!extension_loaded('vld')) print 'skip: vld not loaded' . PHP_EOL;
--FILE--
<?php declare(strict_types=1);
namespace SebastianBergmann\FOAL\CLI;
Expand Down
4 changes: 4 additions & 0 deletions tests/end-to-end/version.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
--TEST--
foal --version
--SKIPIF--
<?php declare(strict_types=1);
if (!extension_loaded('Zend OPcache')) print 'skip: opcache not loaded' . PHP_EOL;
if (!extension_loaded('vld')) print 'skip: vld not loaded' . PHP_EOL;
--FILE--
<?php declare(strict_types=1);
namespace SebastianBergmann\FOAL\CLI;
Expand Down

0 comments on commit 06b35ea

Please sign in to comment.