Nelmio\Alice\Loader\LoaderIntegrationTest::testTemplateCanExtendOtherTemplateObjectsCombinedWithRange PHP Method

testTemplateCanExtendOtherTemplateObjectsCombinedWithRange() public method

    public function testTemplateCanExtendOtherTemplateObjectsCombinedWithRange()
    {
        $data = [\stdClass::class => ['base_{du, yu}mmy (template)' => ['base' => 'true'], 'dummy{1..2} (template, extends base_dummy)' => ['foo' => 'bar'], 'y{u, U}mmy (extends dummy2)' => ['foo' => 'baz']]];
        $expected = new ObjectSet(new ParameterBag(), new ObjectBag(['yummy' => StdClassFactory::create(['base' => 'true', 'foo' => 'baz']), 'yUmmy' => StdClassFactory::create(['base' => 'true', 'foo' => 'baz'])]));
        $actual = $this->loader->loadData($data);
        $this->assertEquals($expected, $actual);
    }