diff --git a/tests/phpunit/N3QuoterTest.php b/tests/phpunit/N3QuoterTest.php index b92d7ed..9e3758f 100644 --- a/tests/phpunit/N3QuoterTest.php +++ b/tests/phpunit/N3QuoterTest.php @@ -1,77 +1,77 @@ ', 'http://acme.com/%3Cwacky%20stuff%3E', ), array( 'http://acme.com\\back\\slash', 'http://acme.com%5Cback%5Cslash', ), array( 'http://acme.com/~`!@#$%^&*()-_=+[]{}|:;\'",.<>/?', 'http://acme.com/~%60!@#$%%5E&*()-_=+[]%7B%7D%7C:;\'%22,.%3C%3E/?', ), ); } /** * @dataProvider provideEscapeIRI */ public function testEscapeIRI( $iri, $expected ) { $quoter = new N3Quoter(); $this->assertEquals( $expected, $quoter->escapeIRI( $iri ) ); } public function provideEscapeLiteral() { return array( - array( "Hello World", 'Hello World' ), + array( 'Hello World', 'Hello World' ), array( "Hello\nWorld", 'Hello\nWorld' ), array( "Hello\tWorld", 'Hello\tWorld' ), - array( "Hällo Wörld", 'Hällo Wörld', false ), - array( "Hällo Wörld", 'H\u00E4llo W\u00F6rld', true ), + array( 'Hällo Wörld', 'Hällo Wörld', false ), + array( 'Hällo Wörld', 'H\u00E4llo W\u00F6rld', true ), array( '\a', '\\\\a' ), array( "\x7\v\0\x1F", '\u0007\u000B\u0000\u001F' ), ); } /** * @dataProvider provideEscapeLiteral */ public function testEscapeLiteral( $literal, $expected, $escapeUnicode = false ) { $quoter = new N3Quoter(); $quoter->setEscapeUnicode( $escapeUnicode ); $this->assertEquals( $expected, $quoter->escapeLiteral( $literal ) ); } }