mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 22:05:44 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user