Skip to content

Commit

Permalink
minor #15888 [Console] Fix transient HHVM test (nicolas-grekas)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.7 branch.

Discussion
----------

[Console] Fix transient HHVM test

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Follow up of #15848

Commits
-------

945ec0e [Console] Fix transient HHVM test
  • Loading branch information
nicolas-grekas committed Sep 25, 2015
2 parents 507e959 + 945ec0e commit 4d7f95c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Symfony/Component/Console/Tests/Helper/ProgressBarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Helper\Helper;
use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Tests;

class ProgressBarTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
Tests\with_clock_mock(true);
}

protected function tearDown()
{
Tests\with_clock_mock(false);
}

public function testMultipleStart()
{
$bar = new ProgressBar($output = $this->getOutputStream());
Expand Down

0 comments on commit 4d7f95c

Please sign in to comment.