mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-07-17 16:39:40 +00:00
add a version check, the third argument in getopt requires PHP >= 7.1
This commit is contained in:
parent
14075cea78
commit
669c98550c
2 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ class MigrateTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
public function testMigrate()
|
||||
{
|
||||
if (version_compare(PHP_VERSION, '7.1.0') < 0) {
|
||||
return; // skip test on unsupported PHP versions
|
||||
}
|
||||
|
||||
$this->_model_1->delete(Helper::getPasteId());
|
||||
$this->_model_2->delete(Helper::getPasteId());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue