'alveolata', 'sections' => [ [ 'name' => 'localization', 'sections' => [ [ 'name' => 'get', 'setup' => function (&$environment) { \alveolata\localization\_state::$suppress_messages = true; \alveolata\localization\feed( 'eng', [ 'foo' => 'roses are red', 'bar' => 'grass is green', ] ); \alveolata\localization\feed( 'deu', [ 'foo' => 'Rosen sind rot', ] ); }, 'cases' => [ [ 'name' => 'found at first', 'procedure' => function ($assert, &$environment) { $value = \alveolata\localization\get('foo'); $assert->equal($value, 'Rosen sind rot'); }, ], [ 'name' => 'found at second', 'procedure' => function ($assert, &$environment) { $value = \alveolata\localization\get('bar'); $assert->equal($value, 'grass is green'); }, ], [ 'name' => 'not found', 'procedure' => function ($assert, &$environment) { $value = \alveolata\localization\get('baz'); $assert->equal($value, '{baz}'); }, ], ] ] ] ] ] ] ); ?>