summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-09-16 14:16:42 -0300
committerGabriel Caruso <carusogabriel34@gmail.com>2018-10-14 12:07:20 -0300
commit9c144e0d8217d1ef7a83c2498214308b21af749f (patch)
treed977ba0d8601de477c52f62accf02c120ef06253 /ext/pdo_firebird
parentb419732ddb0673dc5b15a67ee4bc7f06dd90d7d0 (diff)
downloadphp-git-9c144e0d8217d1ef7a83c2498214308b21af749f.tar.gz
Trim trailing whitespace in tests
Diffstat (limited to 'ext/pdo_firebird')
-rw-r--r--ext/pdo_firebird/tests/bug_74462.phpt2
-rw-r--r--ext/pdo_firebird/tests/bug_76488.phpt2
-rw-r--r--ext/pdo_firebird/tests/common.phpt2
-rw-r--r--ext/pdo_firebird/tests/connect.phpt4
-rw-r--r--ext/pdo_firebird/tests/ddl.phpt14
-rw-r--r--ext/pdo_firebird/tests/execute.phpt14
6 files changed, 19 insertions, 19 deletions
diff --git a/ext/pdo_firebird/tests/bug_74462.phpt b/ext/pdo_firebird/tests/bug_74462.phpt
index 4a8d2c9c91..52033decca 100644
--- a/ext/pdo_firebird/tests/bug_74462.phpt
+++ b/ext/pdo_firebird/tests/bug_74462.phpt
@@ -1,7 +1,7 @@
--TEST--
PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields
--SKIPIF--
-<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip');
+<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip');
?>
--FILE--
<?php
diff --git a/ext/pdo_firebird/tests/bug_76488.phpt b/ext/pdo_firebird/tests/bug_76488.phpt
index dba6734c28..028d3cb805 100644
--- a/ext/pdo_firebird/tests/bug_76488.phpt
+++ b/ext/pdo_firebird/tests/bug_76488.phpt
@@ -20,7 +20,7 @@ from r
for ($i = 0; $i < 10; $i++) {
$sth = $dbh->prepare($sql);
- $sth->execute();
+ $sth->execute();
$rows = $sth->fetchAll();
unset($rows);
unset($sth);
diff --git a/ext/pdo_firebird/tests/common.phpt b/ext/pdo_firebird/tests/common.phpt
index 00d4b239ab..adad09df05 100644
--- a/ext/pdo_firebird/tests/common.phpt
+++ b/ext/pdo_firebird/tests/common.phpt
@@ -9,7 +9,7 @@ if (!extension_loaded('pdo_firebird')) print 'skip'; ?>
$config = array(
'TESTS' => 'ext/pdo/tests'
);
-
+
if (false !== getenv('PDO_FIREBIRD_TEST_DSN')) {
# user set them from their shell
diff --git a/ext/pdo_firebird/tests/connect.phpt b/ext/pdo_firebird/tests/connect.phpt
index d8e1a64ade..e66addcc72 100644
--- a/ext/pdo_firebird/tests/connect.phpt
+++ b/ext/pdo_firebird/tests/connect.phpt
@@ -7,11 +7,11 @@ PDO_Firebird: connect/disconnect
<?php
require("testdb.inc");
-
+
$db = new PDO("firebird:dbname=$test_base",$user,$password) or die;
unset($db);
echo "done\n";
-
+
?>
--EXPECT--
done
diff --git a/ext/pdo_firebird/tests/ddl.phpt b/ext/pdo_firebird/tests/ddl.phpt
index 635d636946..6e5a5fc144 100644
--- a/ext/pdo_firebird/tests/ddl.phpt
+++ b/ext/pdo_firebird/tests/ddl.phpt
@@ -7,29 +7,29 @@ PDO_Firebird: DDL/transactions
<?php
require("testdb.inc");
-
+
$db = new PDO("firebird:dbname=$test_base",$user,$password) or die;
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
-
+
$db->exec("CREATE TABLE ddl (id INT NOT NULL PRIMARY KEY, text BLOB SUB_TYPE 1)");
$db->exec("CREATE GENERATOR gen_ddl_id");
$db->exec("CREATE TRIGGER ddl_bi FOR ddl BEFORE INSERT AS
BEGIN IF (NEW.id IS NULL) THEN NEW.id=GEN_ID(gen_ddl_id,1); END");
-
+
$db->setAttribute(PDO::ATTR_AUTOCOMMIT,0);
-
+
$db->beginTransaction();
var_dump($db->exec("INSERT INTO ddl (text) VALUES ('bla')"));
var_dump($db->exec("UPDATE ddl SET text='blabla'"));
$db->rollback();
-
+
$db->beginTransaction();
var_dump($db->exec("DELETE FROM ddl"));
$db->commit();
-
+
unset($db);
echo "done\n";
-
+
?>
--EXPECT--
int(1)
diff --git a/ext/pdo_firebird/tests/execute.phpt b/ext/pdo_firebird/tests/execute.phpt
index d6ae88d653..0aa64d5531 100644
--- a/ext/pdo_firebird/tests/execute.phpt
+++ b/ext/pdo_firebird/tests/execute.phpt
@@ -9,7 +9,7 @@ ibase.timestampformat=%Y-%m-%d %H:%M:%S
<?php
require("testdb.inc");
-
+
$db = new PDO("firebird:dbname=$test_base",$user,$password) or die;
var_dump($db->getAttribute(PDO::ATTR_CONNECTION_STATUS));
@@ -19,7 +19,7 @@ ibase.timestampformat=%Y-%m-%d %H:%M:%S
$db->exec("CREATE TABLE ddl (id SMALLINT NOT NULL PRIMARY KEY, text VARCHAR(32),
datetime TIMESTAMP DEFAULT '2000-02-12' NOT NULL)");
$db->exec("INSERT INTO ddl (id,text) VALUES (1,'bla')");
-
+
$s = $db->prepare("SELECT * FROM ddl WHERE id=? FOR UPDATE");
$id = 0;
@@ -29,21 +29,21 @@ ibase.timestampformat=%Y-%m-%d %H:%M:%S
$id = 1;
$s->execute();
$s->setAttribute(PDO::ATTR_CURSOR_NAME, "c");
-
+
var_dump($id);
var_dump($s->fetch());
var_dump($var);
-
+
var_dump($db->exec("UPDATE ddl SET id=2 WHERE CURRENT OF c"));
var_dump($s->fetch());
-
- unset($s);
+
+ unset($s);
unset($db);
echo "done\n";
-
+
?>
--EXPECT--
bool(true)