Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05fc646

Browse files
committed
minor #15913 Ensure the ClockMock is loaded before using it in the testsuite (stof)
This PR was merged into the 2.7 branch. Discussion ---------- Ensure the ClockMock is loaded before using it in the testsuite | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a The ``ProgressBarTest`` is passing in 2.7 and 2.8 on Travis only because the ``LegacyProgressHelperTest`` is running first, and so the clock mock is loaded. It would not pass when running it standalone. And the testsuite is currently broken in the master branch because LegacyProgressHelperTest is gone there, and so the clock mock was not loaded before the test. Commits ------- 0e5aa0e Ensure the ClockMock is loaded before using it in the testsuite
2 parents 548c104 + 0e5aa0e commit 05fc646

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
use Symfony\Component\Console\Output\StreamOutput;
1717
use Symfony\Component\Console\Tests;
1818

19+
require_once __DIR__.'/../ClockMock.php';
20+
1921
class ProgressBarTest extends \PHPUnit_Framework_TestCase
2022
{
2123
protected function setUp()

0 commit comments

Comments
 (0)