8000 minor #18213 [Console] use the clock mock for progress indicator test… · symfony/symfony@254b4e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 254b4e9

Browse files
minor #18213 [Console] use the clock mock for progress indicator tests (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [Console] use the clock mock for progress indicator tests | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18200 | License | MIT | Doc PR | Unfortunately, I opened #18200 for the wrong branch. Commits ------- 584b752 use the clock mock for progress indicator tests
2 parents 40c4f0d + 584b752 commit 254b4e9

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