diff options
| author | Timm Friebe <thekid@php.net> | 2007-05-22 11:33:36 +0000 |
|---|---|---|
| committer | Timm Friebe <thekid@php.net> | 2007-05-22 11:33:36 +0000 |
| commit | 680735fce80aa753ebc5c838cfde8f1a5e6ed56a (patch) | |
| tree | 841a82a5c3d4fc88dbebcf423cef523d0837f42d /ext/sybase_ct/tests | |
| parent | 083844f847fc3030189d97ad51e9c9d843bcf5c6 (diff) | |
| download | php-git-680735fce80aa753ebc5c838cfde8f1a5e6ed56a.tar.gz | |
- 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
Diffstat (limited to 'ext/sybase_ct/tests')
| -rw-r--r-- | ext/sybase_ct/tests/bug26407.phpt | 2 | ||||
| -rw-r--r-- | ext/sybase_ct/tests/test_fetch_object.phpt | 2 | ||||
| -rw-r--r-- | ext/sybase_ct/tests/test_msghandler.phpt | 4 | ||||
| -rw-r--r-- | ext/sybase_ct/tests/test_unbuffered_query.phpt | 2 |
4 files changed, 5 insertions, 5 deletions
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) |
