8000 minor #18200 use the clock mock for progress indicator tests (xabbuh) · symfony/symfony@e436c1e · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e436c1e

Browse files
minor #18200 use the clock mock for progress indicator tests (xabbuh)
This PR was merged into the 3.0 branch. Discussion ---------- use the clock mock for progress indicator tests | Q | A | ------------- | --- | Branch? | 3.0 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15617 (comment) | License | MIT | Doc PR | Commits ------- dbde648 use the clock mock for progress indicator tests
2 parents 1b3ad91 + dbde648 commit e436c1e

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

phpunit.xml.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@
5252
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
5353
<arguments>
5454
<array>
55-
<element key="time-sensitive"><string>Symfony\Component\HttpFoundation</string></element>
55+
<element key="time-sensitive">
56+
<array>
57+
<element><string>Symfony\Component\Console</string></element>
58+
<element><string>Symfony\Component\HttpFoundation</string></element>
59+
</array>
60+
</element>
5661
</array>
5762
</arguments>
5863
</listener>

src/Symfony/Component/Console/Tests/Helper/ProgressIndicatorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use Symfony\Component\Console\Helper\ProgressIndicator;
66
use Symfony\Component\Console\Output\StreamOutput;
77

8+
/**
9+
* @group time-sensitive
10+
*/
811
class ProgressIndicatorTest extends \PHPUnit_Framework_TestCase
912
{
1013
public function testDefaultIndicator()

src/Symfony/Component/Console/phpunit.xml.dist

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,14 @@
2626
</exclude>
2727
</whitelist>
2828
</filter>
29+
30+
<listeners>
31+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
32+
<arguments>
33+
<array>
34+
<element key="time-sensitive"><string>Symfony\Component\Console</string></element>
35+
</array>
36+
</arguments>
37+
</listener>
38+
</listeners>
2939
</phpunit>

0 commit comments

Comments
 (0)
0