Skip to content

Commit ea84aa1

Browse files
committed
Fix tests
1 parent bafa8e2 commit ea84aa1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Symfony/Component/Console/Tests/ApplicationTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,10 @@ public function testRunAllowsErrorListenersToSilenceTheException()
10511051
$this->assertEquals(0, $tester->getStatusCode());
10521052
}
10531053

1054+
/**
1055+
* @group legacy
1056+
* @expectedDeprecation The "console.exception" event is deprecated since version 3.3 and will be removed in 4.0. Use the "console.error" event instead.
1057+
*/
10541058
public function testLegacyExceptionListenersAreStillTriggered()
10551059
{
10561060
$dispatcher = $this->getDispatcher();

src/Symfony/Component/Form/Tests/FormErrorIteratorTest.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
namespace Symfony\Component\Form\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Symfony\Component\EventDispatcher\EventDispatcher;
1516
use Symfony\Component\Form\FormBuilder;
1617
use Symfony\Component\Form\FormError;
1718
use Symfony\Component\Form\FormErrorIterator;
1819
use Symfony\Component\Validator\ConstraintViolation;
1920

20-
class FormErrorIteratorTest extends \PHPUnit_Framework_TestCase
21+
class FormErrorIteratorTest extends TestCase
2122
{
2223
/**
2324
* @dataProvider findByCodesProvider
@@ -32,7 +33,7 @@ public function testFindByCodes($code, $violationsCount)
3233
'form',
3334
null,
3435
new EventDispatcher(),
35-
$this->getMock('Symfony\Component\Form\FormFactoryInterface'),
36+
$this->getMockBuilder('Symfony\Component\Form\FormFactoryInterface')->getMock(),
3637
array()
3738
);
3839

0 commit comments

Comments
 (0)