*/ public function dataProviderForTestEscape() { return [ ['test', 'test'], ['carl\'s "pokemon"', 'carl's "pokemon"'], ["\n", "\n"], ["\r", "\r"], ["\t", "\t"], ["\v", '�'], ["\f", '�'], ]; } /** * @dataProvider dataProviderForTestEscape * * @param string $stringToEscape * @param string $expectedEscapedString * @return void */ public function testEscape($stringToEscape, $expectedEscapedString) { $escaper = new Escaper\ODS(); $escapedString = $escaper->escape($stringToEscape); $this->assertEquals($expectedEscapedString, $escapedString, 'Incorrect escaped string'); } }