com php-src: Fix broken test: ext/pdo/tests/bug65946.phpt

From: Date: Sat, 09 Nov 2013 17:45:52 +0000
Subject: com php-src: Fix broken test: ext/pdo/tests/bug65946.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73916@lists.php.net to get a copy of this message
Commit: 064ba179b15bda7566fa43297e2cee8033bc850f Author: Rasmus Lerdorf <rasmus@lerdorf.com> Sat, 9 Nov 2013 09:45:52 -0800 Parents: cf2626f10c92709f8db44afa15fc09ec6a9d8b0c Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=064ba179b15bda7566fa43297e2cee8033bc850f Log: Fix broken test Changed paths: M ext/pdo/tests/bug65946.phpt Diff: diff --git a/ext/pdo/tests/bug65946.phpt b/ext/pdo/tests/bug65946.phpt index 30261d6..1c4bd8d 100644 --- a/ext/pdo/tests/bug65946.phpt +++ b/ext/pdo/tests/bug65946.phpt @@ -16,8 +16,7 @@ $db = PDOTest::factory(); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $db->exec('CREATE TABLE test(id int)'); $db->exec('INSERT INTO test VALUES(1)'); -$db->exec('INSERT INTO test VALUES(2)'); -$stmt = $db->prepare('SELECT * FROM testtable LIMIT :limit'); +$stmt = $db->prepare('SELECT * FROM test LIMIT :limit'); $stmt->bindValue('limit', 1, PDO::PARAM_INT); if(!($res = $stmt->execute())) var_dump($stmt->errorInfo()); if(!($res = $stmt->execute())) var_dump($stmt->errorInfo()); @@ -28,6 +27,6 @@ array(1) { [0]=> array(1) { ["id"]=> - string(1) "2" + string(1) "1" } }

« previous php.cvs (#73916) next »