Skip to content

Commit

Permalink
Displays a message for the functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
rayanlevert committed May 1, 2024
1 parent 81099c1 commit 7f5a54f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" displayDetailsOnTestsThatTriggerDeprecations="true" displayDetailsOnTestsThatTriggerWarnings="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" displayDetailsOnTestsThatTriggerDeprecations="true" displayDetailsOnTestsThatTriggerWarnings="true" displayDetailsOnSkippedTests="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Style">
<directory>./tests/Style</directory>
Expand Down
7 changes: 5 additions & 2 deletions tests/ProgressBar/ProgressBarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,15 @@ public function testGetFormattedTime(): void
public function testFunctional(): void
{
if (getenv('display_functional') !== 'true') {
$this->markTestSkipped();
$this->markTestSkipped(
'Displaying multiple cases of progress bars is enabled'
. ' via "display_functional=true" environment variable.'
);
}

include 'functional.php';

$this->assertTrue(true);
$this->expectNotToPerformAssertions();
ob_start();

print "\n";
Expand Down

0 comments on commit 7f5a54f

Please sign in to comment.