Skip to content

Commit 5fd6079

Browse files
committed
Misc test updates
1 parent 98dce51 commit 5fd6079

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

ext/exif/tests/exif_imagetype_error.phpt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ Test exif_imagetype() function : error conditions
1212

1313
echo "*** Testing exif_imagetype() : error conditions ***\n";
1414

15-
echo "\n-- Testing exif_imagetype() function with no arguments --\n";
16-
var_dump( exif_imagetype() );
17-
18-
echo "\n-- Testing exif_imagetype() function with more than expected no. of arguments --\n";
19-
$extra_arg = 10;
20-
var_dump( exif_imagetype(dirname(__FILE__).'/test2.jpg', $extra_arg) );
21-
2215
echo "\n-- Testing exif_imagetype() function with an unknown file --\n";
2316
var_dump( exif_imagetype(dirname(__FILE__).'/foo.jpg') );
2417

@@ -28,16 +21,6 @@ var_dump( exif_imagetype(dirname(__FILE__).'/foo.jpg') );
2821
--EXPECTF--
2922
*** Testing exif_imagetype() : error conditions ***
3023

31-
-- Testing exif_imagetype() function with no arguments --
32-
33-
Warning: exif_imagetype() expects exactly 1 parameter, 0 given in %s on line %d
34-
NULL
35-
36-
-- Testing exif_imagetype() function with more than expected no. of arguments --
37-
38-
Warning: exif_imagetype() expects exactly 1 parameter, 2 given in %s on line %d
39-
NULL
40-
4124
-- Testing exif_imagetype() function with an unknown file --
4225

4326
Warning: exif_imagetype(%s/foo.jpg): failed to open stream: No such file or directory in %s on line %d

ext/sqlite3/tests/sqlite3_33_reset.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ $db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')");
1515

1616
$stmt = $db->prepare('SELECT bar FROM foo WHERE id=:id');
1717
$stmt->bindValue(':id', 1, SQLITE3_INTEGER);
18-
$stmt->reset("dummy");
1918
$stmt->reset();
2019

2120
//var_dump($db);
2221
//var_dump($db->close());
2322
echo "Done\n";
2423
?>
25-
--EXPECTF--
26-
Warning: SQLite3Stmt::reset() expects exactly 0 parameters, 1 given in %s on line %d
24+
--EXPECT--
2725
Done

ext/sqlite3/tests/sqlite3_enable_exceptions.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ try{
1717
}
1818
var_dump($db->enableExceptions(false));
1919
$db->query("SELECT * FROM non_existent_table");
20-
var_dump($db->enableExceptions("wrong_type","wrong_type"));
2120
echo "Closing database\n";
2221
var_dump($db->close());
2322
echo "Done\n";
@@ -28,9 +27,6 @@ no such table: non_existent_table
2827
bool(true)
2928

3029
Warning: SQLite3::query(): no such table: non_existent_table in %s on line %d
31-
32-
Warning: SQLite3::enableExceptions() expects at most 1 parameter, 2 given in %s on line %d
33-
NULL
3430
Closing database
3531
bool(true)
3632
Done

0 commit comments

Comments
 (0)