com php-src: move test: ext/pgsql/pg_insert_002.php t ext/pgsql/tests/pg_insert_002.phpt

From: Date: Wed, 20 May 2015 12:03:41 +0000
Subject: com php-src: move test: ext/pgsql/pg_insert_002.php t ext/pgsql/tests/pg_insert_002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86817@lists.php.net to get a copy of this message
Commit: 88aab478bff52cc81c5c452bf77e77c375ca2470 Author: Remi Collet <remi@php.net> Wed, 20 May 2015 14:02:13 +0200 Parents: 593c4b9b00270db8d50dd0a486ccf8c881e22519 Branches: PHP-5.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=88aab478bff52cc81c5c452bf77e77c375ca2470 Log: move test Changed paths: D ext/pgsql/pg_insert_002.phpt A ext/pgsql/tests/pg_insert_002.phpt Diff: diff --git a/ext/pgsql/pg_insert_002.phpt b/ext/pgsql/pg_insert_002.phpt deleted file mode 100644 index 87d87b8..0000000 --- a/ext/pgsql/pg_insert_002.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -PostgreSQL pg_select() - basic test using schema ---SKIPIF-- -<?php include("skipif.inc"); ?> ---FILE-- -<?php - -include('config.inc'); - -$conn = pg_connect($conn_str); - -foreach (array('', '.', '..') as $table) { - var_dump(pg_insert($conn, $table, array('id' => 1, 'id2' => 1))); -} -?> -Done ---EXPECTF-- - -Warning: pg_insert(): The table name must be specified in %s on line %d -bool(false) - -Warning: pg_insert(): The table name must be specified in %s on line %d -bool(false) - -Warning: pg_insert(): The table name must be specified in %s on line %d -bool(false) -Done \ No newline at end of file diff --git a/ext/pgsql/tests/pg_insert_002.phpt b/ext/pgsql/tests/pg_insert_002.phpt new file mode 100644 index 0000000..87d87b8 --- /dev/null +++ b/ext/pgsql/tests/pg_insert_002.phpt @@ -0,0 +1,27 @@ +--TEST-- +PostgreSQL pg_select() - basic test using schema +--SKIPIF-- +<?php include("skipif.inc"); ?> +--FILE-- +<?php + +include('config.inc'); + +$conn = pg_connect($conn_str); + +foreach (array('', '.', '..') as $table) { + var_dump(pg_insert($conn, $table, array('id' => 1, 'id2' => 1))); +} +?> +Done +--EXPECTF-- + +Warning: pg_insert(): The table name must be specified in %s on line %d +bool(false) + +Warning: pg_insert(): The table name must be specified in %s on line %d +bool(false) + +Warning: pg_insert(): The table name must be specified in %s on line %d +bool(false) +Done \ No newline at end of file

« previous php.cvs (#86817) next »