Lines Matching refs:e

70         } catch (SecurityError $e) {
71 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedMethodError', $e, 'Exception should be an…
72 …$this->assertEquals('FooObject', $e->getClassName(), 'Exception should be raised on the "FooObject…
73 … $this->assertEquals('foo', $e->getMethodName(), 'Exception should be raised on the "foo" method');
83 } catch (SecurityError $e) {
84 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedFilterError', $e, 'Exception should be an…
85 …$this->assertEquals('upper', $e->getFilterName(), 'Exception should be raised on the "upper" filte…
95 } catch (SecurityError $e) {
96 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedTagError', $e, 'Exception should be an in…
97 … $this->assertEquals('if', $e->getTagName(), 'Exception should be raised on the "if" tag');
107 } catch (SecurityError $e) {
108 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedPropertyError', $e, 'Exception should be …
109 …$this->assertEquals('FooObject', $e->getClassName(), 'Exception should be raised on the "FooObject…
110 …$this->assertEquals('bar', $e->getPropertyName(), 'Exception should be raised on the "bar" propert…
123 } catch (SecurityError $e) {
124 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedMethodError', $e, 'Exception should be an…
125 …$this->assertEquals('FooObject', $e->getClassName(), 'Exception should be raised on the "FooObject…
126 …$this->assertEquals('__tostring', $e->getMethodName(), 'Exception should be raised on the "__toStr…
193 } catch (SecurityError $e) {
194 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedFunctionError', $e, 'Exception should be …
195 …$this->assertEquals('cycle', $e->getFunctionName(), 'Exception should be raised on the "cycle" fun…
205 } catch (SecurityError $e) {
206 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedFunctionError', $e, 'Exception should be …
207 …$this->assertEquals('range', $e->getFunctionName(), 'Exception should be raised on the "range" fun…
280 } catch (SecurityError $e) {
281 …$this->assertInstanceOf('\Twig\Sandbox\SecurityNotAllowedTagError', $e, 'Exception should be an in…
282 $this->assertEquals('sandbox', $e->getTagName());
304 $e = null;
307 } catch (\Throwable $e) {
308 } catch (\Exception $e) {
310 if (null === $e) {