From: Christoph M. Becker Date: Fri, 2 Sep 2016 22:55:12 +0000 (+0200) Subject: Replace `dirname(__FILE__)` with `__DIR__` in tests X-Git-Tag: php-7.2.0alpha1~1363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c91684394e009fa6e036d8be062bfb3ae36179d;p=php Replace `dirname(__FILE__)` with `__DIR__` in tests --- diff --git a/ext/sqlite3/tests/bug45798.phpt b/ext/sqlite3/tests/bug45798.phpt index 1beacc4910..9637c1fc9b 100644 --- a/ext/sqlite3/tests/bug45798.phpt +++ b/ext/sqlite3/tests/bug45798.phpt @@ -1,11 +1,11 @@ --TEST-- Bug #45798 (sqlite3 doesn't notice if variable was bound) --SKIPIF-- - + --FILE-- exec('CREATE TABLE test (time INTEGER, id STRING)'); diff --git a/ext/sqlite3/tests/bug47159.phpt b/ext/sqlite3/tests/bug47159.phpt index f8ffa289f5..7d91e1a14e 100644 --- a/ext/sqlite3/tests/bug47159.phpt +++ b/ext/sqlite3/tests/bug47159.phpt @@ -1,11 +1,11 @@ --TEST-- Bug #45798 (sqlite3 doesn't track unexecuted statements) --SKIPIF-- - + --FILE-- prepare("SELECT 1"); diff --git a/ext/sqlite3/tests/bug53463.phpt b/ext/sqlite3/tests/bug53463.phpt index dcfc13d5ba..3d907811c1 100644 --- a/ext/sqlite3/tests/bug53463.phpt +++ b/ext/sqlite3/tests/bug53463.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #53463 (sqlite3 columnName() segfaults on bad column_number) --SKIPIF-- - + --FILE-- + --FILE-- close()); diff --git a/ext/sqlite3/tests/sqlite3_01_open.phpt b/ext/sqlite3/tests/sqlite3_01_open.phpt index 11c482722b..f5cc452f0f 100644 --- a/ext/sqlite3/tests/sqlite3_01_open.phpt +++ b/ext/sqlite3/tests/sqlite3_01_open.phpt @@ -1,11 +1,11 @@ --TEST-- SQLite3::open/close tests --SKIPIF-- - + --FILE-- close()); diff --git a/ext/sqlite3/tests/sqlite3_02_create.phpt b/ext/sqlite3/tests/sqlite3_02_create.phpt index 5a1aa719d3..913df09ad2 100644 --- a/ext/sqlite3/tests/sqlite3_02_create.phpt +++ b/ext/sqlite3/tests/sqlite3_02_create.phpt @@ -1,11 +1,11 @@ --TEST-- SQLite3::query CREATE tests --SKIPIF-- - + --FILE-- exec('CREATE TABLE test (time INTEGER, id STRING)')); diff --git a/ext/sqlite3/tests/sqlite3_02_open.phpt b/ext/sqlite3/tests/sqlite3_02_open.phpt index b9b49530b3..87f4b91625 100644 --- a/ext/sqlite3/tests/sqlite3_02_open.phpt +++ b/ext/sqlite3/tests/sqlite3_02_open.phpt @@ -4,7 +4,7 @@ SQLite3::open test, testing for function parameters Felix De Vliegher # Belgian PHP Testfest 2009 --SKIPIF-- - + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- query("SELECT * FROM non_existent_table"); diff --git a/ext/sqlite3/tests/sqlite3_21_security.phpt b/ext/sqlite3/tests/sqlite3_21_security.phpt index a667a1234c..5221807cd5 100644 --- a/ext/sqlite3/tests/sqlite3_21_security.phpt +++ b/ext/sqlite3/tests/sqlite3_21_security.phpt @@ -1,14 +1,14 @@ --TEST-- SQLite3 open_basedir checks --SKIPIF-- - + --INI-- open_basedir=. --FILE-- hasMethod("loadExtension")) { die("skip - sqlite3 doesn't have loadExtension enabled"); @@ -14,9 +14,9 @@ sqlite3.extension_dir=. --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- createfunction($func, $func)); diff --git a/ext/sqlite3/tests/sqlite3_30_blobopen.phpt b/ext/sqlite3/tests/sqlite3_30_blobopen.phpt index ed51153784..1daa4b1ffb 100644 --- a/ext/sqlite3/tests/sqlite3_30_blobopen.phpt +++ b/ext/sqlite3/tests/sqlite3_30_blobopen.phpt @@ -1,12 +1,12 @@ --TEST-- SQLite3::blobOpen stream test --SKIPIF-- - + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- createCollation('NAT', 'strnatcmp'); diff --git a/ext/sqlite3/tests/sqlite3_bind_bug68849.phpt b/ext/sqlite3/tests/sqlite3_bind_bug68849.phpt index 321f883a8e..d04e596b50 100644 --- a/ext/sqlite3/tests/sqlite3_bind_bug68849.phpt +++ b/ext/sqlite3/tests/sqlite3_bind_bug68849.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #68849 bindValue is not using the right data type --SKIPIF-- - + --FILE-- + --FILE-- exec('CREATE TABLE test (id STRING, data BLOB)')); $insert_stmt = $db->prepare("INSERT INTO test (id, data) VALUES (1, ?)"); diff --git a/ext/sqlite3/tests/sqlite3_close_error.phpt b/ext/sqlite3/tests/sqlite3_close_error.phpt index d242352872..dad8cb9937 100644 --- a/ext/sqlite3/tests/sqlite3_close_error.phpt +++ b/ext/sqlite3/tests/sqlite3_close_error.phpt @@ -4,7 +4,7 @@ SQLite3::close parameters Jachim Coudenys # TestFest 2009 Belgium --SKIPIF-- - + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- + --FILE-- + --FILE-- + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- + --FILE-- #TestFest PHPBelgium 2009 --SKIPIF-- - + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- exec('CREATE TABLE foobar (id INTEGER, name STRING, city STRING)')); diff --git a/ext/sqlite3/tests/sqlite3stmt_paramCount_error.phpt b/ext/sqlite3/tests/sqlite3stmt_paramCount_error.phpt index 2aac6c2108..64016db6da 100644 --- a/ext/sqlite3/tests/sqlite3stmt_paramCount_error.phpt +++ b/ext/sqlite3/tests/sqlite3stmt_paramCount_error.phpt @@ -1,11 +1,11 @@ --TEST-- SQLite3Stmt::paramCount error test --SKIPIF-- - + --FILE-- exec('CREATE TABLE foobar (id INTEGER, name STRING, city STRING)')); diff --git a/ext/sqlite3/tests/sqlite3stmt_reset_params.phpt b/ext/sqlite3/tests/sqlite3stmt_reset_params.phpt index b0dfc20456..f2fa74ada1 100644 --- a/ext/sqlite3/tests/sqlite3stmt_reset_params.phpt +++ b/ext/sqlite3/tests/sqlite3stmt_reset_params.phpt @@ -4,7 +4,7 @@ SQLite3Stmt::reset with parameter test Jelle Lampaert #Belgian Testfest 2009 --SKIPIF-- - + --FILE--