minor #28728 [EventDispatcher] Remove template method in test case (samnela)
This PR was merged into the 2.8 branch.
Discussion
----------
[EventDispatcher] Remove template method in test case
| Q | A
| ------------- | ---
| Branch? | 2.8 <!-- see below -->
| Bug fix? | no
| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | no <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | no <!-- required for new features -->
<!--
Write a short README entry for your feature/bugfix here (replace this comment block.)
This will help people understand your PR and can be used as a start of the Doc PR.
Additionally:
- Bug fixes must be submitted against the lowest branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the master branch.
-->
Commits
-------
545a8eef05
[EventDispatcher] Remove template method in test case
This commit is contained in:
commit
75eb858331
@ -31,8 +31,6 @@ class GenericEventTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
|
||||||
|
|
||||||
$this->subject = new \stdClass();
|
$this->subject = new \stdClass();
|
||||||
$this->event = new GenericEvent($this->subject, array('name' => 'Event'));
|
$this->event = new GenericEvent($this->subject, array('name' => 'Event'));
|
||||||
}
|
}
|
||||||
@ -44,8 +42,6 @@ class GenericEventTest extends TestCase
|
|||||||
{
|
{
|
||||||
$this->subject = null;
|
$this->subject = null;
|
||||||
$this->event = null;
|
$this->event = null;
|
||||||
|
|
||||||
parent::tearDown();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstruct()
|
public function testConstruct()
|
||||||
|
Reference in New Issue
Block a user