Merge branch '3.x' into 4.x

* 3.x:
  Remove obsolete code
  Deprecate Environment::mergeGlobals()
  Bump version
  Prepare the 3.13.0 release
  Fix wrong format of `Environment::VERSION_ID` constant
  Fix minor things
  Fix CS
  Fix isset in ForLoopNode
  Fix iterable return type
  Improve exception expectations reliability
This commit is contained in:
Fabien Potencier
2024-09-07 17:03:10 +02:00
25 changed files with 148 additions and 149 deletions
+3 -2
View File
@@ -22,11 +22,12 @@ class CustomExtensionTest extends TestCase
#[DataProvider('provideInvalidExtensions')]
public function testGetInvalidOperators(ExtensionInterface $extension, $expectedExceptionMessage)
{
$env = new Environment(new ArrayLoader());
$env->addExtension($extension);
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage($expectedExceptionMessage);
$env = new Environment(new ArrayLoader());
$env->addExtension($extension);
$env->getUnaryOperators();
}