Upgrade tests to PhpUnit 10 (#5252)

This commit is contained in:
Kevin Papst
2024-12-22 01:25:30 +01:00
committed by GitHub
parent 9bd37fb695
commit c7f0508707
377 changed files with 3308 additions and 3409 deletions

View File

@@ -29,16 +29,16 @@ class AjaxAuthenticationSubscriberTest extends TestCase
public function testGetSubscribedEvents(): void
{
$events = AjaxAuthenticationSubscriber::getSubscribedEvents();
$this->assertArrayHasKey(KernelEvents::EXCEPTION, $events);
self::assertArrayHasKey(KernelEvents::EXCEPTION, $events);
/** @var string $methodName */
$methodName = $events[KernelEvents::EXCEPTION][0];
$this->assertTrue(method_exists(AjaxAuthenticationSubscriber::class, $methodName));
self::assertTrue(method_exists(AjaxAuthenticationSubscriber::class, $methodName));
}
/**
* @return array<array<string>>
*/
public function getTestHeader(): array
public static function getTestHeader(): array
{
return [
['XMLHttpRequest'],