public function getFunctions() { $functions = $this->extension->getFunctions(); $this->assertCount(1, $functions); /** @var \Twig_SimpleFunction $scrollDataBefore */ $scrollDataBefore = reset($functions); $this->assertInstanceOf('Twig_SimpleFunction', $scrollDataBefore); $this->assertEquals('oro_ui_scroll_data_before', $scrollDataBefore->getName()); $this->assertEquals([$this, 'onScrollDataBefore'], $scrollDataBefore->getCallable()); $this->assertTrue($scrollDataBefore->needsEnvironment()); }