Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 4.2: (27 commits) cs fix cs fix [PHPUnit-Bridge] override some environment variables [TwigBridge] Remove use spaceless tag Upgrade zookeeper ext [translation] Update defaut format from yml to yaml Change default log level for output streams update docblock to match the actual behavior Don't resolve the Deprecation error handler mode until a deprecation is triggered compatibility with phpunit8 Make 'headers' key optional for encoded messages [Debug][DebugClassLoader] Detect annotations before blank docblock lines on final and internal methods Fix undefined variable fromConstructor when passing context to getTypes Added translations for chineese language. Allow 3rd argument to be null Remove whitespace (tab on blank line) [Monolog] Really reset logger when calling logger::reset() [Form] Fixes debug:form appears many times as type extensions configured with new getExtendedTypes method Update src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php Update src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php ...
- Loading branch information
Showing
4 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\Form\Test; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
// Auto-adapt to PHPUnit 8 that added a `void` return-type to the setUp/tearDown methods | ||
|
||
if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) { | ||
eval(' | ||
namespace Symfony\Component\Form\Test; | ||
/** | ||
* @internal | ||
*/ | ||
trait TestCaseSetUpTearDownTrait | ||
{ | ||
private function doSetUp(): void | ||
{ | ||
} | ||
private function doTearDown(): void | ||
{ | ||
} | ||
protected function setUp(): void | ||
{ | ||
$this->doSetUp(); | ||
} | ||
protected function tearDown(): void | ||
{ | ||
$this->doTearDown(); | ||
} | ||
} | ||
'); | ||
} else { | ||
/** | ||
* @internal | ||
*/ | ||
trait TestCaseSetUpTearDownTrait | ||
{ | ||
/** | ||
* @return void | ||
*/ | ||
private function doSetUp() | ||
{ | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
private function doTearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
protected function setUp() | ||
{ | ||
$this->doSetUp(); | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
protected function tearDown() | ||
{ | ||
$this->doTearDown(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters