summaryrefslogtreecommitdiff
path: root/ext/pdo/tests/pdo_029.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
commitf8d795820e780a6322e054c26c581570613c14f0 (patch)
tree99d3ae01ce564752807341c5743863b4c92513f8 /ext/pdo/tests/pdo_029.phpt
parentd2cb200e10ada6fa44c54a29292bb4665728fff0 (diff)
downloadphp-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz
Reindent phpt files
Diffstat (limited to 'ext/pdo/tests/pdo_029.phpt')
-rw-r--r--ext/pdo/tests/pdo_029.phpt24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/pdo/tests/pdo_029.phpt b/ext/pdo/tests/pdo_029.phpt
index 8204de236a..10ab369128 100644
--- a/ext/pdo/tests/pdo_029.phpt
+++ b/ext/pdo/tests/pdo_029.phpt
@@ -25,19 +25,19 @@ class PDOStatementX extends PDOStatement
protected function __construct($dbh)
{
- $this->dbh = $dbh;
- echo __METHOD__ . "()\n";
+ $this->dbh = $dbh;
+ echo __METHOD__ . "()\n";
}
function __destruct()
{
- echo __METHOD__ . "()\n";
+ echo __METHOD__ . "()\n";
}
function execute($params = array())
{
- echo __METHOD__ . "()\n";
- parent::execute();
+ echo __METHOD__ . "()\n";
+ parent::execute();
}
}
@@ -45,16 +45,16 @@ class PDODatabase extends PDO
{
function __destruct()
{
- echo __METHOD__ . "()\n";
+ echo __METHOD__ . "()\n";
}
function query($sql)
{
- echo __METHOD__ . "()\n";
- $stmt = $this->prepare($sql, array(PDO::ATTR_STATEMENT_CLASS=>array('PDOStatementx', array($this))));
- $stmt->setFetchMode(PDO::FETCH_ASSOC);
- $stmt->execute();
- return $stmt;
+ echo __METHOD__ . "()\n";
+ $stmt = $this->prepare($sql, array(PDO::ATTR_STATEMENT_CLASS=>array('PDOStatementx', array($this))));
+ $stmt->setFetchMode(PDO::FETCH_ASSOC);
+ $stmt->execute();
+ return $stmt;
}
}
@@ -80,7 +80,7 @@ var_dump(get_class($stmt->dbh));
echo "===FOREACH===\n";
foreach($stmt as $obj) {
- var_dump($obj);
+ var_dump($obj);
}
echo "===DONE===\n";