Package fr.adrienbrault.idea.symfony2plugin.translation.parser

Examples of fr.adrienbrault.idea.symfony2plugin.translation.parser.TranslationStringParser


    @Test
    public void testParse() {

        File testFile = new File(this.getClass().getResource("translations/catalogue.de.php").getFile());
        TranslationStringMap map =  new TranslationStringParser().parse(testFile);

        assertTrue(map.getDomainMap("FOSUserBundle").contains("registration.email.message"));

        assertTrue(map.getDomainList().contains("FOSUserBundle"));
        assertFalse(map.getDomainList().contains("NotInList"));
View Full Code Here


    }

    @Test
    public void testParsePathMatcher() {
        File testFile = new File(this.getClass().getResource("translations/catalogue.de.php").getFile());
        TranslationStringMap map = new TranslationStringParser().parsePathMatcher(testFile.getParentFile().getPath());
        assertTrue(map.getDomainMap("FOSUserBundle").contains("registration.email.message"));
    }
View Full Code Here

TOP

Related Classes of fr.adrienbrault.idea.symfony2plugin.translation.parser.TranslationStringParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.