Skip to content

Fix tests #22122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Symfony/Component/Console/Tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,10 @@ public function testRunAllowsErrorListenersToSilenceTheException()
$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();
Expand Down
5 changes: 3 additions & 2 deletions src/Symfony/Component/Form/Tests/FormErrorIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,7 +33,7 @@ public function testFindByCodes($code, $violationsCount)
'form',
null,
new EventDispatcher(),
$this->getMock('Symfony\Component\Form\FormFactoryInterface'),
$this->getMockBuilder('Symfony\Component\Form\FormFactoryInterface')->getMock(),
array()
);

Expand Down