mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
feat: adds skipOnPHP
This commit is contained in:
17
tests/Features/SkipOnPhp.php
Normal file
17
tests/Features/SkipOnPhp.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
it('can run on php version')
|
||||
->skipOnPhp('<=7.4.0')
|
||||
->assertTrue(true);
|
||||
|
||||
it('can skip on specific php version')
|
||||
->skipOnPhp(PHP_VERSION)
|
||||
->assertTrue(false);
|
||||
|
||||
it('can run on specific php version')
|
||||
->skipOnPhp('7.4.0')
|
||||
->assertTrue(true);
|
||||
|
||||
it('can skip on php versions depending on constraint')
|
||||
->skipOnPhp('>=7.4.0')
|
||||
->assertTrue(false);
|
||||
Reference in New Issue
Block a user