Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
@@ -14,6 +14,9 @@ namespace Symfony\Component\HttpKernel\Tests\Config;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Config\EnvParametersResource;
/**
* @group legacy
*/
class EnvParametersResourceTest extends TestCase
{
protected $prefix = '__DUMMY_';
@@ -22,10 +25,10 @@ class EnvParametersResourceTest extends TestCase
protected function setUp()
{
$this->initialEnv = array(
$this->initialEnv = [
$this->prefix.'1' => 'foo',
$this->prefix.'2' => 'bar',
);
];
foreach ($this->initialEnv as $key => $value) {
$_SERVER[$key] = $value;
@@ -46,7 +49,7 @@ class EnvParametersResourceTest extends TestCase
public function testGetResource()
{
$this->assertSame(
array('prefix' => $this->prefix, 'variables' => $this->initialEnv),
['prefix' => $this->prefix, 'variables' => $this->initialEnv],
$this->resource->getResource(),
'->getResource() returns the resource'
);
@@ -55,7 +58,7 @@ class EnvParametersResourceTest extends TestCase
public function testToString()
{
$this->assertSame(
serialize(array('prefix' => $this->prefix, 'variables' => $this->initialEnv)),
serialize(['prefix' => $this->prefix, 'variables' => $this->initialEnv]),
(string) $this->resource
);
}
@@ -23,14 +23,14 @@ class FileLocatorTest extends TestCase
->expects($this->atLeastOnce())
->method('locateResource')
->with('@BundleName/some/path', null, true)
->will($this->returnValue('/bundle-name/some/path'));
->willReturn('/bundle-name/some/path');
$locator = new FileLocator($kernel);
$this->assertEquals('/bundle-name/some/path', $locator->locate('@BundleName/some/path'));
$kernel
->expects($this->never())
->method('locateResource');
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('LogicException');
$this->expectException('LogicException');
$locator->locate('/some/path');
}