Contao\CoreBundle\Test\Contao\StringUtilTest::parseSimpleTokensCorrectNewlines PHP Method

parseSimpleTokensCorrectNewlines() public method

Provides the data for the testParseSimpleTokensCorrectNewlines() method.
    public function parseSimpleTokensCorrectNewlines()
    {
        return ['Test newlines are kept end of token' => ["This is my ##token##\n", ['token' => 'foo'], "This is my foo\n"], 'Test newlines are kept end in token' => ['This is my ##token##', ['token' => "foo\n"], "This is my foo\n"], 'Test newlines are kept end in and after token' => ["This is my ##token##\n", ['token' => "foo\n"], "This is my foo\n\n"], 'Test newlines are kept' => ["This is my \n ##newline## here", ['newline' => "foo\nbar\n"], "This is my \n foo\nbar\n here"], 'Test newlines are removed after if tag' => ["\n{if token=='foo'}\nline2\n{endif}\n", ['token' => 'foo'], "\nline2\n"], 'Test newlines are removed after else tag' => ["\n{if token!='foo'}{else}\nline2\n{endif}\n", ['token' => 'foo'], "\nline2\n"]];
    }