From: Timm Friebe Date: Tue, 22 May 2007 11:33:36 +0000 (+0000) Subject: - Fixed tests on Windows X-Git-Tag: php-5.2.3RC1~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=680735fce80aa753ebc5c838cfde8f1a5e6ed56a;p=php - Fixed tests on Windows # The tests expected %s/test.inc in warnings and notices, but of course, # on Windows, the directory separator is a backslash. # Made this work in both worlds by testing for %stest.inc --- diff --git a/ext/sybase_ct/tests/bug26407.phpt b/ext/sybase_ct/tests/bug26407.phpt index c8a2d8f28f..35bf6df7ad 100644 --- a/ext/sybase_ct/tests/bug26407.phpt +++ b/ext/sybase_ct/tests/bug26407.phpt @@ -80,7 +80,7 @@ bool(true) select "bar" -Notice: sybase_query(): Sybase: Unexpected results, cancelling current in %s/test.inc on line %d +Notice: sybase_query(): Sybase: Unexpected results, cancelling current in %stest.inc on line %d <<< Return: resource array(1) { [0]=> diff --git a/ext/sybase_ct/tests/test_fetch_object.phpt b/ext/sybase_ct/tests/test_fetch_object.phpt index 699c9335cc..c23658fa35 100644 --- a/ext/sybase_ct/tests/test_fetch_object.phpt +++ b/ext/sybase_ct/tests/test_fetch_object.phpt @@ -65,7 +65,7 @@ article::__set_state(array( 'lastchange' => '%s', )) -Notice: sybase_fetch_object(): Sybase: Class *** has not been declared in %s/test_fetch_object.php on line %d +Notice: sybase_fetch_object(): Sybase: Class *** has not been declared in %stest_fetch_object.php on line %d stdClass::__set_state(array( 'id' => 1, 'caption' => 'Hello', diff --git a/ext/sybase_ct/tests/test_msghandler.phpt b/ext/sybase_ct/tests/test_msghandler.phpt index 742dc684ad..d97fe3f76c 100644 --- a/ext/sybase_ct/tests/test_msghandler.phpt +++ b/ext/sybase_ct/tests/test_msghandler.phpt @@ -26,14 +26,14 @@ Sybase-CT server message handler ?> --EXPECTF-- Nonexistant: -Warning: sybase_set_message_handler(): First argumented is expected to be a valid callback, 'function_does_not_exist' was given in %s/test.inc on line %d +Warning: sybase_set_message_handler(): First argumented is expected to be a valid callback, 'function_does_not_exist' was given in %stest.inc on line %d bool(false) Static method: bool(true) Instance method: bool(true) Lambda function: bool(true) Unset: bool(true) Incorrect type: -Warning: sybase_set_message_handler(): First argumented is expected to be either NULL, an array or string, integer given in %s/test.inc on line %d +Warning: sybase_set_message_handler(): First argumented is expected to be either NULL, an array or string, integer given in %stest.inc on line %d bool(false) Function: bool(true) >>> Query: select getdate(NULL) diff --git a/ext/sybase_ct/tests/test_unbuffered_query.phpt b/ext/sybase_ct/tests/test_unbuffered_query.phpt index 74b10143b2..b2be2f2304 100644 --- a/ext/sybase_ct/tests/test_unbuffered_query.phpt +++ b/ext/sybase_ct/tests/test_unbuffered_query.phpt @@ -49,7 +49,7 @@ bool(true) resource(%d) of type (sybase-ct result) resource(%d) of type (Unknown) -Warning: sybase_num_rows(): %d is not a valid Sybase result resource in %s/test_unbuffered_query.php on line %d +Warning: sybase_num_rows(): %d is not a valid Sybase result resource in %stest_unbuffered_query.php on line %d bool(true) resource(%d) of type (sybase-ct result) int(%d)