read('en', $path); $expected = [ 'NONAMESPACE' => 'Include Entity without Namespace', 'SPRINTFNONAMESPACE' => 'My replacement no namespace: %s', 'SPRINTFINCLUDENONAMESPACE' => 'My include replacement no namespace: %s', 'LAYOUTTEMPLATENONAMESPACE' => 'Layout Template no namespace', 'i18nTestModule.ENTITY' => 'Entity with "Double Quotes"', 'i18nTestModule.ADDITION' => 'Addition', 'i18nTestModule.MAINTEMPLATE' => 'Main Template', 'i18nTestModule.WITHNAMESPACE' => 'Include Entity with Namespace', 'i18nTestModule.LAYOUTTEMPLATE' => 'Layout Template', 'i18nTestModule.SPRINTFNAMESPACE' => 'My replacement: %s', 'i18nTestModuleInclude.ss.SPRINTFINCLUDENAMESPACE' => 'My include replacement: %s', 'i18nTestModule.PLURALS' => [ 'one' => 'A test', 'other' => '{count} tests', ], 'Month.PLURALS' => [ 'one' => 'A month', 'other' => '{count} months', ], ]; $this->assertEquals($expected, $output); } }