diff --git a/tests/IDNAEncoder.php b/tests/IDNAEncoder.php index b22ae4023..f1f5ce511 100644 --- a/tests/IDNAEncoder.php +++ b/tests/IDNAEncoder.php @@ -5,11 +5,11 @@ public static function specExamples() { return array( array( "\xe4\xbb\x96\xe4\xbb\xac\xe4\xb8\xba\xe4\xbb\x80\xe4\xb9\x88\xe4\xb8\x8d\xe8\xaf\xb4\xe4\xb8\xad\xe6\x96\x87", - "xn--ihqwcrb4cv8a8dqg056pqjye", + 'xn--ihqwcrb4cv8a8dqg056pqjye', ), array( "\x33\xe5\xb9\xb4\x42\xe7\xb5\x84\xe9\x87\x91\xe5\x85\xab\xe5\x85\x88\xe7\x94\x9f", - "xn--3B-ww4c5e180e575a65lsy2b", + 'xn--3B-ww4c5e180e575a65lsy2b', ), ); } @@ -26,7 +26,7 @@ public function testEncoding($data, $expected) { * @expectedException Requests_Exception */ public function testASCIITooLong() { - $data = str_repeat("abcd", 20); + $data = str_repeat('abcd', 20); $result = Requests_IDNAEncoder::encode($data); } @@ -46,7 +46,7 @@ public function testAlreadyPrefixed() { } public function testASCIICharacter() { - $result = Requests_IDNAEncoder::encode("a"); + $result = Requests_IDNAEncoder::encode('a'); $this->assertEquals('a', $result); } diff --git a/tests/Requests.php b/tests/Requests.php index 57c95c1d5..dda3e6488 100644 --- a/tests/Requests.php +++ b/tests/Requests.php @@ -70,7 +70,7 @@ public function testRawAccess() { $transport->data = "HTTP/1.0 200 OK\r\n" . "Host: localhost\r\n\r\n" . - "Test"; + 'Test'; $options = array( 'transport' => $transport,