Skip to content

Commit

Permalink
minor #58374 Remove useless parent method calls in tests (alexandre-d…
Browse files Browse the repository at this point in the history
…aubois)

This PR was merged into the 7.2 branch.

Discussion
----------

Remove useless parent method calls in tests

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

The vast majority of tests don't call these parent methods, because they are no op. There are a few places where they are called, let's remove them?

Commits
-------

b54596f604 Remove useless parent method calls in tests
  • Loading branch information
fabpot committed Sep 27, 2024
2 parents e3f3cd6 + ef2df58 commit 61c438e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Tests/Caster/DateCasterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ class DateCasterTest extends TestCase

protected function setUp(): void
{
parent::setUp();

$this->previousTimezone = date_default_timezone_get();
}

protected function tearDown(): void
{
parent::tearDown();

date_default_timezone_set($this->previousTimezone);
}

Expand Down

0 comments on commit 61c438e

Please sign in to comment.