minor #22122 Fix tests (chalasr)

This PR was merged into the 3.3-dev branch.

Discussion
----------

Fix tests

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

Commits
-------

ea84aa1 Fix tests
This commit is contained in:
Nicolas Grekas 2017-03-23 13:32:01 +01:00
commit 3de0d9b33f
2 changed files with 7 additions and 2 deletions

View File

@ -1051,6 +1051,10 @@ class ApplicationTest extends TestCase
$this->assertEquals(0, $tester->getStatusCode());
}
/**
* @group legacy
* @expectedDeprecation The "console.exception" event is deprecated since version 3.3 and will be removed in 4.0. Use the "console.error" event instead.
*/
public function testLegacyExceptionListenersAreStillTriggered()
{
$dispatcher = $this->getDispatcher();

View File

@ -11,13 +11,14 @@
namespace Symfony\Component\Form\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\FormErrorIterator;
use Symfony\Component\Validator\ConstraintViolation;
class FormErrorIteratorTest extends \PHPUnit_Framework_TestCase
class FormErrorIteratorTest extends TestCase
{
/**
* @dataProvider findByCodesProvider
@ -32,7 +33,7 @@ class FormErrorIteratorTest extends \PHPUnit_Framework_TestCase
'form',
null,
new EventDispatcher(),
$this->getMock('Symfony\Component\Form\FormFactoryInterface'),
$this->getMockBuilder('Symfony\Component\Form\FormFactoryInterface')->getMock(),
array()
);