diff options
author | Fabien Villepinte <fabien.villepinte@gmail.com> | 2019-03-15 22:55:30 +0100 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-03-15 22:55:30 +0100 |
commit | 26dfce7f36d1c6f737ac241df1315a1b42b932c7 (patch) | |
tree | 570279b2f4d66a3de7f6ff7f7c865654ad04cea4 /ext/pdo_dblib | |
parent | 63802a8446691869371bb37078d55b99cae7eb95 (diff) | |
download | php-git-26dfce7f36d1c6f737ac241df1315a1b42b932c7.tar.gz |
Replace dirname(__FILE__) by __DIR__ in tests
Diffstat (limited to 'ext/pdo_dblib')
-rw-r--r-- | ext/pdo_dblib/tests/batch_stmt_ins_exec.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/batch_stmt_ins_sel_up_del.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/batch_stmt_ins_up.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/batch_stmt_rowcount.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/batch_stmt_transaction.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/batch_stmt_try.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_38955.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_45876.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_47588.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_50755.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_54648.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_67130.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_68957.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_69592.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_71667.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/bug_73396.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/pdo_dblib_param_str_natl.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/pdo_dblib_quote.phpt | 4 | ||||
-rw-r--r-- | ext/pdo_dblib/tests/timeout.phpt | 4 |
19 files changed, 38 insertions, 38 deletions
diff --git a/ext/pdo_dblib/tests/batch_stmt_ins_exec.phpt b/ext/pdo_dblib/tests/batch_stmt_ins_exec.phpt index 5d218051e8..810460de49 100644 --- a/ext/pdo_dblib/tests/batch_stmt_ins_exec.phpt +++ b/ext/pdo_dblib/tests/batch_stmt_ins_exec.phpt @@ -3,13 +3,13 @@ PDO_DBLIB: driver supports a batch of queries containing SELECT, INSERT, UPDATE, --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; if (!driver_supports_batch_statements_without_select($db)) die('xfail test will fail with this version of FreeTDS'); ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; // creating a proc need to be a statement in it's own batch, so we need to do a little setup first $db->query("create table #php_pdo(id int); "); diff --git a/ext/pdo_dblib/tests/batch_stmt_ins_sel_up_del.phpt b/ext/pdo_dblib/tests/batch_stmt_ins_sel_up_del.phpt index e2c5f6ac47..828ffbfaad 100644 --- a/ext/pdo_dblib/tests/batch_stmt_ins_sel_up_del.phpt +++ b/ext/pdo_dblib/tests/batch_stmt_ins_sel_up_del.phpt @@ -3,13 +3,13 @@ PDO_DBLIB: driver supports a batch of queries containing SELECT, INSERT, UPDATE --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; if (!driver_supports_batch_statements_without_select($db)) die('xfail test will fail with this version of FreeTDS'); ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->query( "create table #php_pdo(id int);" . diff --git a/ext/pdo_dblib/tests/batch_stmt_ins_up.phpt b/ext/pdo_dblib/tests/batch_stmt_ins_up.phpt index 8f162e7a6d..1e45e34cac 100644 --- a/ext/pdo_dblib/tests/batch_stmt_ins_up.phpt +++ b/ext/pdo_dblib/tests/batch_stmt_ins_up.phpt @@ -3,13 +3,13 @@ PDO_DBLIB: driver supports multiple queries in a single \PDO::query() call that --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; if (!driver_supports_batch_statements_without_select($db)) die('xfail test will fail with this version of FreeTDS'); ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->query( "create table #php_pdo(id int);" . diff --git a/ext/pdo_dblib/tests/batch_stmt_rowcount.phpt b/ext/pdo_dblib/tests/batch_stmt_rowcount.phpt index 287a7e3528..0779b97969 100644 --- a/ext/pdo_dblib/tests/batch_stmt_rowcount.phpt +++ b/ext/pdo_dblib/tests/batch_stmt_rowcount.phpt @@ -3,13 +3,13 @@ PDO_DBLIB: driver supports SET ROWCOUNT and SELECT @@ROWCOUNT in batch statement --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; if (!driver_supports_batch_statements_without_select($db)) die('xfail test will fail with this version of FreeTDS'); ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->query( "create table #php_pdo(id int); " . diff --git a/ext/pdo_dblib/tests/batch_stmt_transaction.phpt b/ext/pdo_dblib/tests/batch_stmt_transaction.phpt index d811f6786f..7e02796d91 100644 --- a/ext/pdo_dblib/tests/batch_stmt_transaction.phpt +++ b/ext/pdo_dblib/tests/batch_stmt_transaction.phpt @@ -3,13 +3,13 @@ PDO_DBLIB: driver supports a batch of queries containing SELECT, INSERT, UPDATE --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; if (!driver_supports_batch_statements_without_select($db)) die('xfail test will fail with this version of FreeTDS'); ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->query( "create table #php_pdo(id int);" . diff --git a/ext/pdo_dblib/tests/batch_stmt_try.phpt b/ext/pdo_dblib/tests/batch_stmt_try.phpt index 0f74d0b701..2b29e4c6eb 100644 --- a/ext/pdo_dblib/tests/batch_stmt_try.phpt +++ b/ext/pdo_dblib/tests/batch_stmt_try.phpt @@ -3,13 +3,13 @@ PDO_DBLIB: driver supports exceptions --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; if (!driver_supports_batch_statements_without_select($db)) die('xfail test will fail with this version of FreeTDS'); ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->query( "create table #php_pdo(id int);" . diff --git a/ext/pdo_dblib/tests/bug_38955.phpt b/ext/pdo_dblib/tests/bug_38955.phpt index 57adbf6c40..cdd596cad8 100644 --- a/ext/pdo_dblib/tests/bug_38955.phpt +++ b/ext/pdo_dblib/tests/bug_38955.phpt @@ -3,11 +3,11 @@ --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; /*We see these rows */ $db->query("CREATE table php_test(val int)"); diff --git a/ext/pdo_dblib/tests/bug_45876.phpt b/ext/pdo_dblib/tests/bug_45876.phpt index 2e99e2b94f..7328cdc9bb 100644 --- a/ext/pdo_dblib/tests/bug_45876.phpt +++ b/ext/pdo_dblib/tests/bug_45876.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: Does not support get column meta --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->prepare("select top 1 ic1.* from information_schema.columns ic1"); $stmt->execute(); diff --git a/ext/pdo_dblib/tests/bug_47588.phpt b/ext/pdo_dblib/tests/bug_47588.phpt index 262720f632..26ea25c66e 100644 --- a/ext/pdo_dblib/tests/bug_47588.phpt +++ b/ext/pdo_dblib/tests/bug_47588.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: Quoted field names --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $db->query('CREATE TABLE "Test Table" ("My Field" int, "Another Field" varchar(32) not null default \'test_string\')'); $db->query('INSERT INTO "Test Table" ("My Field") values(1)'); diff --git a/ext/pdo_dblib/tests/bug_50755.phpt b/ext/pdo_dblib/tests/bug_50755.phpt index 95d1a8bc70..33b776c145 100644 --- a/ext/pdo_dblib/tests/bug_50755.phpt +++ b/ext/pdo_dblib/tests/bug_50755.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: Out of memory on large recordsets --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; /* This should be sufficient to overflow any buffers */ $stmt = $db->prepare("select * diff --git a/ext/pdo_dblib/tests/bug_54648.phpt b/ext/pdo_dblib/tests/bug_54648.phpt index 93cde8e415..568f6a7e83 100644 --- a/ext/pdo_dblib/tests/bug_54648.phpt +++ b/ext/pdo_dblib/tests/bug_54648.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: Does not force correct dateformat --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $db->query('set dateformat ymd'); $rs = $db->query("select cast('1950-01-18 23:00:00' as smalldatetime) as sdt, cast('2030-01-01 23:59:59' as datetime) as dt"); var_dump($rs->fetchAll(PDO::FETCH_ASSOC)); diff --git a/ext/pdo_dblib/tests/bug_67130.phpt b/ext/pdo_dblib/tests/bug_67130.phpt index 4cfb66f2c6..a1aeaecc23 100644 --- a/ext/pdo_dblib/tests/bug_67130.phpt +++ b/ext/pdo_dblib/tests/bug_67130.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: \PDOStatement::nextRowset() should succeed when all rows in current r --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->query('SELECT 1; SELECT 2; SELECT 3;'); var_dump($stmt->fetch()); diff --git a/ext/pdo_dblib/tests/bug_68957.phpt b/ext/pdo_dblib/tests/bug_68957.phpt index d500fd498b..19e721f405 100644 --- a/ext/pdo_dblib/tests/bug_68957.phpt +++ b/ext/pdo_dblib/tests/bug_68957.phpt @@ -3,11 +3,11 @@ PDO_DBLIB bug #68957 PDO::query doesn't support several queries --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $query = "declare @myInt int = 1; select @myInt;"; $stmt = $db->query($query); diff --git a/ext/pdo_dblib/tests/bug_69592.phpt b/ext/pdo_dblib/tests/bug_69592.phpt index 98936618d1..42c12ef2bb 100644 --- a/ext/pdo_dblib/tests/bug_69592.phpt +++ b/ext/pdo_dblib/tests/bug_69592.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: PDO::DBLIB_ATTR_SKIP_EMPTY_ROWSETS for skip junk resultsets on SET NO --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $sql = ' SET NOCOUNT ON diff --git a/ext/pdo_dblib/tests/bug_71667.phpt b/ext/pdo_dblib/tests/bug_71667.phpt index 3721f01954..3c1a817808 100644 --- a/ext/pdo_dblib/tests/bug_71667.phpt +++ b/ext/pdo_dblib/tests/bug_71667.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: Emulate how mssql extension names "computed" columns --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->prepare("SELECT 1, 2 AS named, 3"); $stmt->execute(); diff --git a/ext/pdo_dblib/tests/bug_73396.phpt b/ext/pdo_dblib/tests/bug_73396.phpt index 909e1194c0..86ad59f43f 100644 --- a/ext/pdo_dblib/tests/bug_73396.phpt +++ b/ext/pdo_dblib/tests/bug_73396.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: bigint columns are returned as strings --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; // on 64-bit machines, these columns should come back as ints // on 32-bit machines, they will come back as strings because zend_long isn't big enough diff --git a/ext/pdo_dblib/tests/pdo_dblib_param_str_natl.phpt b/ext/pdo_dblib/tests/pdo_dblib_param_str_natl.phpt index 4753a91a51..8e4062e359 100644 --- a/ext/pdo_dblib/tests/pdo_dblib_param_str_natl.phpt +++ b/ext/pdo_dblib/tests/pdo_dblib_param_str_natl.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: national character set values are quoted correctly in queries --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $stmt = $db->prepare('SELECT :value'); $stmt->bindValue(':value', 'foo', PDO::PARAM_STR | PDO::PARAM_STR_NATL); diff --git a/ext/pdo_dblib/tests/pdo_dblib_quote.phpt b/ext/pdo_dblib/tests/pdo_dblib_quote.phpt index 854e14cb9d..c5f2a4b620 100644 --- a/ext/pdo_dblib/tests/pdo_dblib_quote.phpt +++ b/ext/pdo_dblib/tests/pdo_dblib_quote.phpt @@ -3,11 +3,11 @@ PDO_DBLIB: Ensure quote function returns expected results --SKIPIF-- <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; var_dump($db->quote(true, PDO::PARAM_BOOL)); var_dump($db->quote(false, PDO::PARAM_BOOL)); var_dump($db->quote(42, PDO::PARAM_INT)); diff --git a/ext/pdo_dblib/tests/timeout.phpt b/ext/pdo_dblib/tests/timeout.phpt index d711f2a3a0..c0485c6d51 100644 --- a/ext/pdo_dblib/tests/timeout.phpt +++ b/ext/pdo_dblib/tests/timeout.phpt @@ -4,11 +4,11 @@ PDO_DBLIB: Set query timeouts <?php if (!extension_loaded('pdo_dblib')) die('skip not loaded'); if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; ?> --FILE-- <?php -require dirname(__FILE__) . '/config.inc'; +require __DIR__ . '/config.inc'; $sql = 'WAITFOR DELAY \'00:00:02\''; |