com php-src: Fix tests on Windows: ext/reflection/tests/009.phpt ext/reflection/tests/025.phpt
| From: | Kalle Sommer Nielsen | Date: | Thu, 26 Mar 2015 02:13:50 +0000 |
| Subject: | com php-src: Fix tests on Windows: ext/reflection/tests/009.phpt ext/reflection/tests/025.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85886@lists.php.net to get a copy of this message | ||
Commit: 71734d64c85db51de7a26502ed3c645b2a8a57cc
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 26 Mar 2015 03:13:50 +0100
Parents: 10e1b13ac5497c109e7ded8fd3f8fbcc42c6a283
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=71734d64c85db51de7a26502ed3c645b2a8a57cc
Log:
Fix tests on Windows
CRLF takes +2 bytes when running the tests, making it yield 13 instead of 11
Changed paths:
M ext/reflection/tests/009.phpt
M ext/reflection/tests/025.phpt
Diff:
diff --git a/ext/reflection/tests/009.phpt b/ext/reflection/tests/009.phpt
index 8cc0f98..81fe93a 100644
--- a/ext/reflection/tests/009.phpt
+++ b/ext/reflection/tests/009.phpt
@@ -76,7 +76,7 @@ int(6)
--getEndline--
int(8)
--getDocComment--
-string(11) "/**
+string(%d) "/**
hoho
*/"
--getStaticVariables--
diff --git a/ext/reflection/tests/025.phpt b/ext/reflection/tests/025.phpt
index e49fa99..cd37545 100644
--- a/ext/reflection/tests/025.phpt
+++ b/ext/reflection/tests/025.phpt
@@ -78,7 +78,7 @@ int(6)
--getEndline--
int(8)
--getDocComment--
-string(11) "/**
+string(%d) "/**
hoho
*/"
--getStaticVariables--