Skip to content

Commit

Permalink
minor #18213 [Console] use the clock mock for progress indicator test…
Browse files Browse the repository at this point in the history
…s (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
  • Loading branch information
nicolas-grekas committed Mar 17, 2016
2 parents 40c4f0d + 584b752 commit 254b4e9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion phpunit.xml.dist
Expand Up @@ -52,7 +52,12 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
<arguments>
<array>
<element key="time-sensitive"><string>Symfony\Component\HttpFoundation</string></element>
<element key="time-sensitive">
<array>
<element><string>Symfony\Component\Console</string></element>
<element><string>Symfony\Component\HttpFoundation</string></element>
</array>
</element>
</array>
</arguments>
</listener>
Expand Down
Expand Up @@ -5,6 +5,9 @@
use Symfony\Component\Console\Helper\ProgressIndicator;
use Symfony\Component\Console\Output\StreamOutput;

/**
* @group time-sensitive
*/
class ProgressIndicatorTest extends \PHPUnit_Framework_TestCase
{
public function testDefaultIndicator()
Expand Down
10 changes: 10 additions & 0 deletions src/Symfony/Component/Console/phpunit.xml.dist
Expand Up @@ -26,4 +26,14 @@
</exclude>
</whitelist>
</filter>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
<arguments>
<array>
<element key="time-sensitive"><string>Symfony\Component\Console</string></element>
</array>
</arguments>
</listener>
</listeners>
</phpunit>

0 comments on commit 254b4e9

Please sign in to comment.