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:02:13 +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-86818@lists.php.net to get a copy of this message
Commit: 3be4e5d71af3d7f495876fabd5a9ce46580e2d0d Author: Remi Collet <remi@php.net> Wed, 20 May 2015 14:02:13 +0200 Parents: 716fe10d97454b6dfe8b2c1c3e0e3e64369ec92d Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3be4e5d71af3d7f495876fabd5a9ce46580e2d0d 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 (#86818) next »