Release 2.25 (#5109)
This commit is contained in:
@@ -113,9 +113,9 @@ class ExtensionsTest extends TestCase
|
||||
$sut = $this->getSut();
|
||||
$this->assertEquals('DateTime', $sut->getClassName(new \DateTime()));
|
||||
$this->assertEquals('stdClass', $sut->getClassName(new \stdClass()));
|
||||
/* @phpstan-ignore-next-line */
|
||||
/* @phpstan-ignore argument.type */
|
||||
$this->assertNull($sut->getClassName(''));
|
||||
/* @phpstan-ignore-next-line */
|
||||
/* @phpstan-ignore argument.type */
|
||||
$this->assertNull($sut->getClassName(null));
|
||||
$this->assertEquals('App\Entity\User', $sut->getClassName(new User()));
|
||||
}
|
||||
|
||||
@@ -139,7 +139,6 @@ class LocaleFormatExtensionsTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return array<int, array<int, \DateTime|string|null>>
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getDateShortData(): array
|
||||
{
|
||||
@@ -196,7 +195,6 @@ class LocaleFormatExtensionsTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return array<int, array<int, string|bool>>
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getDayNameTestData(): array
|
||||
{
|
||||
@@ -219,7 +217,6 @@ class LocaleFormatExtensionsTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return array<int, array<int, string|bool>>
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getMonthNameTestData(): array
|
||||
{
|
||||
@@ -296,7 +293,6 @@ class LocaleFormatExtensionsTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return array<int, array<int, string|null|int|float>>
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getMoneyNoCurrencyData(): array
|
||||
{
|
||||
@@ -331,7 +327,6 @@ class LocaleFormatExtensionsTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return array<int, array<int, null|string|float|int>>
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getMoneyData(): array
|
||||
{
|
||||
@@ -365,7 +360,6 @@ class LocaleFormatExtensionsTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return array<int, array<int, null|int|string|float>>
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getAmountData(): array
|
||||
{
|
||||
@@ -397,7 +391,6 @@ class LocaleFormatExtensionsTest extends TestCase
|
||||
|
||||
/**
|
||||
* @return array<int, array<int, string|float>>
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getMoneyData62_1(): array
|
||||
{
|
||||
|
||||
@@ -15,6 +15,7 @@ use App\Tests\Configuration\TestConfigLoader;
|
||||
use App\Tests\Event\ThemeJavascriptTranslationsEventTest;
|
||||
use App\Tests\Mocks\SystemConfigurationFactory;
|
||||
use App\Twig\Runtime\ThemeExtension;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Bridge\Twig\AppVariable;
|
||||
use Symfony\Bundle\SecurityBundle\Security;
|
||||
@@ -72,7 +73,7 @@ class ThemeEventExtensionTest extends TestCase
|
||||
{
|
||||
$mock = $this->getMockBuilder(UsernamePasswordToken::class)->onlyMethods(['getUser'])->disableOriginalConstructor()->getMock();
|
||||
$mock->method('getUser')->willReturn(new User());
|
||||
/** @var UsernamePasswordToken $token */
|
||||
/** @var UsernamePasswordToken&MockObject $token */
|
||||
$token = $mock;
|
||||
|
||||
$tokenStorage = new TokenStorage();
|
||||
|
||||
@@ -68,7 +68,7 @@ class WidgetExtensionTest extends TestCase
|
||||
$this->expectExceptionMessage('Widget must be either a WidgetInterface or a string');
|
||||
|
||||
$sut = $this->getSut();
|
||||
/* @phpstan-ignore-next-line */
|
||||
/* @phpstan-ignore argument.type */
|
||||
$sut->renderWidget($this->getEnvironment(), true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user