Skip to content

Commit ab84c89

Browse files
committed
fix tests
1 parent 774d507 commit ab84c89

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/Fixtures/ReadonlyTest.php renamed to Tests/Fixtures/ReadOnlyClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
1313

14-
readonly class ReadonlyTest
14+
readonly class ReadOnlyClass
1515
{
1616
public function say(): string
1717
{

Tests/LazyProxy/PhpDumper/LazyServiceDumperTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\DependencyInjection\Definition;
1717
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
1818
use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\LazyServiceDumper;
19-
use Symfony\Component\DependencyInjection\Tests\Fixtures\ReadonlyTest;
19+
use Symfony\Component\DependencyInjection\Tests\Fixtures\ReadOnlyClass;
2020

2121
class LazyServiceDumperTest extends TestCase
2222
{
@@ -55,15 +55,15 @@ public function testInvalidClass()
5555
}
5656

5757
/**
58-
* @requires PHP 8.2
58+
* @requires PHP 8.3
5959
*/
6060
public function testReadonlyClass()
6161
{
6262
$dumper = new LazyServiceDumper();
63-
$definition = (new Definition(ReadonlyTest::class))->setLazy(true);
63+
$definition = (new Definition(ReadOnlyClass::class))->setLazy(true);
6464

6565
$this->assertTrue($dumper->isProxyCandidate($definition));
66-
$this->assertStringContainsString('readonly class ReadonlyTestGhost', $dumper->getProxyCode($definition));
66+
$this->assertStringContainsString('readonly class ReadOnlyClassGhost', $dumper->getProxyCode($definition));
6767
}
6868
}
6969

0 commit comments

Comments
 (0)