private ScriptTwigLoader
$scriptLoader;
protected function setUp(): void
{ $this->script =
new Script( 'simple-function-case.twig',
file_get_contents(__DIR__ . '/_fixtures/simple-function-case/Resources/scripts/simple-function-case/simple-function-case.twig'
),
new \
DateTimeImmutable() );
$this->scriptLoader =
new ScriptTwigLoader($this->script
);
} public function testGetSourceContext(): void
{ $source =
$this->scriptLoader->
getSourceContext($this->script->
getName());
static::
assertEquals( $this->script->
getName(),
$source->
getName() );
static::
assertEquals(