Skip to content

Commit bcab9e5

Browse files
committed
GeneratorArgTest: skip tests when in CBF mode
1 parent 933db1a commit bcab9e5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Core/Config/GeneratorArgTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ final class GeneratorArgTest extends TestCase
2020
{
2121

2222

23+
/**
24+
* Skip these tests when in CBF mode.
25+
*
26+
* @before
27+
*
28+
* @return void
29+
*/
30+
protected function maybeSkipTests()
31+
{
32+
if (PHP_CODESNIFFER_CBF === true) {
33+
$this->markTestSkipped('The `--generator` CLI flag is only supported for the `phpcs` command');
34+
}
35+
36+
}//end maybeSkipTests()
37+
38+
2339
/**
2440
* Ensure that the generator property is set when the parameter is passed a valid value.
2541
*

0 commit comments

Comments
 (0)