svn: /php/php-src/ branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt trunk/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
trunk/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
| From: | Felipe Pena | Date: | Sun, 19 Jun 2011 12:33:49 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt trunk/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt trunk/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-65267@lists.php.net to get a copy of this message | ||
felipe Sun, 19 Jun 2011 12:33:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312277
Log:
- New tests (code coverage++)
Changed paths:
A php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
A php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
A php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
A php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
A php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
A php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
Added: php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt 2011-06-19
12:33:49 UTC (rev 312277)
@@ -0,0 +1,17 @@
+--TEST--
+PDO_sqlite: Testing invalid callback for sqliteCreateAggregate()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
+--FILE--
+<?php
+
+$pdo = new PDO('sqlite::memory:');
+
+$pdo->sqliteCreateAggregate('foo', 'a', '');
+$pdo->sqliteCreateAggregate('foo', 'strlen', '');
+
+?>
+--EXPECTF--
+Warning: PDO::sqliteCreateAggregate(): function 'a' is not callable in %s on line %d
+
+Warning: PDO::sqliteCreateAggregate(): function '' is not callable in %s on line %d
Added: php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt 2011-06-19
12:33:49 UTC (rev 312277)
@@ -0,0 +1,15 @@
+--TEST--
+PDO_sqlite: Testing getAttribute()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
+--FILE--
+<?php
+
+$pdo = new PDO('sqlite::memory:');
+var_dump($pdo->getAttribute(PDO::ATTR_SERVER_VERSION));
+var_dump($pdo->getAttribute(PDO::ATTR_CLIENT_VERSION));
+
+?>
+--EXPECTF--
+string(%d) "%s"
+string(%d) "%s"
Added: php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt 2011-06-19
12:33:49 UTC (rev 312277)
@@ -0,0 +1,17 @@
+--TEST--
+PDO_sqlite: Testing invalid callback for sqliteCreateAggregate()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
+--FILE--
+<?php
+
+$pdo = new PDO('sqlite::memory:');
+
+$pdo->sqliteCreateAggregate('foo', 'a', '');
+$pdo->sqliteCreateAggregate('foo', 'strlen', '');
+
+?>
+--EXPECTF--
+Warning: PDO::sqliteCreateAggregate(): function 'a' is not callable in %s on line %d
+
+Warning: PDO::sqliteCreateAggregate(): function '' is not callable in %s on line %d
Added: php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_4/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt 2011-06-19
12:33:49 UTC (rev 312277)
@@ -0,0 +1,15 @@
+--TEST--
+PDO_sqlite: Testing getAttribute()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
+--FILE--
+<?php
+
+$pdo = new PDO('sqlite::memory:');
+var_dump($pdo->getAttribute(PDO::ATTR_SERVER_VERSION));
+var_dump($pdo->getAttribute(PDO::ATTR_CLIENT_VERSION));
+
+?>
+--EXPECTF--
+string(%d) "%s"
+string(%d) "%s"
Added: php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
===================================================================
--- php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt
(rev 0)
+++ php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate_002.phpt 2011-06-19 12:33:49
UTC (rev 312277)
@@ -0,0 +1,17 @@
+--TEST--
+PDO_sqlite: Testing invalid callback for sqliteCreateAggregate()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
+--FILE--
+<?php
+
+$pdo = new PDO('sqlite::memory:');
+
+$pdo->sqliteCreateAggregate('foo', 'a', '');
+$pdo->sqliteCreateAggregate('foo', 'strlen', '');
+
+?>
+--EXPECTF--
+Warning: PDO::sqliteCreateAggregate(): function 'a' is not callable in %s on line %d
+
+Warning: PDO::sqliteCreateAggregate(): function '' is not callable in %s on line %d
Added: php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
===================================================================
--- php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt
(rev 0)
+++ php/php-src/trunk/ext/pdo_sqlite/tests/pdo_sqlite_get_attribute.phpt 2011-06-19 12:33:49 UTC
(rev 312277)
@@ -0,0 +1,15 @@
+--TEST--
+PDO_sqlite: Testing getAttribute()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
+--FILE--
+<?php
+
+$pdo = new PDO('sqlite::memory:');
+var_dump($pdo->getAttribute(PDO::ATTR_SERVER_VERSION));
+var_dump($pdo->getAttribute(PDO::ATTR_CLIENT_VERSION));
+
+?>
+--EXPECTF--
+string(%d) "%s"
+string(%d) "%s"