summaryrefslogtreecommitdiff
path: root/ext/imap/tests
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-03-15 23:36:47 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-03-15 23:36:47 +0100
commit6426420f61de0df32a6085924d25b347c8788363 (patch)
treeef32814ffbea0ad3c3c38a942f9751302606c736 /ext/imap/tests
parentf26c8644bb340e9e7abb6d1cedb091e9d87dd1d4 (diff)
parent26dfce7f36d1c6f737ac241df1315a1b42b932c7 (diff)
downloadphp-git-6426420f61de0df32a6085924d25b347c8788363.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
Diffstat (limited to 'ext/imap/tests')
-rw-r--r--ext/imap/tests/bug63126.phpt4
-rw-r--r--ext/imap/tests/imap_alerts_error.phpt2
-rw-r--r--ext/imap/tests/imap_append_basic.phpt4
-rw-r--r--ext/imap/tests/imap_body.phpt4
-rw-r--r--ext/imap/tests/imap_body_basic.phpt4
-rw-r--r--ext/imap/tests/imap_bodystruct_basic.phpt4
-rw-r--r--ext/imap/tests/imap_clearflag_full_basic.phpt4
-rw-r--r--ext/imap/tests/imap_close_basic.phpt6
-rw-r--r--ext/imap/tests/imap_close_error.phpt4
-rw-r--r--ext/imap/tests/imap_close_variation3.phpt2
-rw-r--r--ext/imap/tests/imap_close_variation4.phpt6
-rw-r--r--ext/imap/tests/imap_createmailbox_basic.phpt4
-rw-r--r--ext/imap/tests/imap_errors_basic.phpt4
-rw-r--r--ext/imap/tests/imap_expunge_error.phpt2
-rw-r--r--ext/imap/tests/imap_fetch_overview_basic.phpt6
-rw-r--r--ext/imap/tests/imap_fetch_overview_error.phpt6
-rw-r--r--ext/imap/tests/imap_fetch_overview_variation3.phpt6
-rw-r--r--ext/imap/tests/imap_fetch_overview_variation4.phpt2
-rw-r--r--ext/imap/tests/imap_fetch_overview_variation5.phpt6
-rw-r--r--ext/imap/tests/imap_fetch_overview_variation6.phpt6
-rw-r--r--ext/imap/tests/imap_fetchbody_basic.phpt6
-rw-r--r--ext/imap/tests/imap_fetchbody_error.phpt6
-rw-r--r--ext/imap/tests/imap_fetchbody_variation4.phpt6
-rw-r--r--ext/imap/tests/imap_fetchbody_variation5.phpt2
-rw-r--r--ext/imap/tests/imap_fetchbody_variation6.phpt6
-rw-r--r--ext/imap/tests/imap_fetchheader_basic.phpt6
-rw-r--r--ext/imap/tests/imap_fetchheader_error.phpt4
-rw-r--r--ext/imap/tests/imap_fetchheader_variation3.phpt6
-rw-r--r--ext/imap/tests/imap_fetchheader_variation4.phpt2
-rw-r--r--ext/imap/tests/imap_fetchheader_variation5.phpt6
-rw-r--r--ext/imap/tests/imap_fetchstructure_basic.phpt4
-rw-r--r--ext/imap/tests/imap_gc_error.phpt4
-rw-r--r--ext/imap/tests/imap_getsubscribed_basic.phpt4
-rw-r--r--ext/imap/tests/imap_headerinfo_basic.phpt4
-rw-r--r--ext/imap/tests/imap_headerinfo_error.phpt4
-rw-r--r--ext/imap/tests/imap_headers.phpt2
-rw-r--r--ext/imap/tests/imap_list_basic.phpt4
-rw-r--r--ext/imap/tests/imap_lsub_basic.phpt4
-rw-r--r--ext/imap/tests/imap_mail_copy.phpt4
-rw-r--r--ext/imap/tests/imap_mail_copy_basic.phpt4
-rw-r--r--ext/imap/tests/imap_mail_move.phpt4
-rw-r--r--ext/imap/tests/imap_mail_move_basic.phpt4
-rw-r--r--ext/imap/tests/imap_num_msg_error.phpt2
-rw-r--r--ext/imap/tests/imap_num_recent_error.phpt2
-rw-r--r--ext/imap/tests/imap_open_error.phpt4
-rw-r--r--ext/imap/tests/imap_ping_error.phpt2
-rw-r--r--ext/imap/tests/imap_renamemailbox_basic.phpt4
-rw-r--r--ext/imap/tests/imap_rfc822_parse_headers_basic.phpt4
-rw-r--r--ext/imap/tests/imap_savebody_basic.phpt8
-rw-r--r--ext/imap/tests/imap_timeout_basic.phpt2
-rw-r--r--ext/imap/tests/imap_undelete_basic.phpt4
-rw-r--r--ext/imap/tests/imap_undelete_error.phpt4
52 files changed, 109 insertions, 109 deletions
diff --git a/ext/imap/tests/bug63126.phpt b/ext/imap/tests/bug63126.phpt
index b046c46b55..94c618730c 100644
--- a/ext/imap/tests/bug63126.phpt
+++ b/ext/imap/tests/bug63126.phpt
@@ -4,7 +4,7 @@ imap_open() DISABLE_AUTHENTICATOR ignores array param
<?php
extension_loaded('imap') or die('skip imap extension not available in this build');
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$in = imap_open($default_mailbox, $username, $password, OP_HALFOPEN, 1);
if (!$in) {
@@ -28,7 +28,7 @@ $tests = array(
'Array' => array('DISABLE_AUTHENTICATOR' => array('GSSAPI','NTLM')),
'String' => array('DISABLE_AUTHENTICATOR' => 'GSSAPI'),
);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
foreach ($tests as $name => $testparams) {
echo "Test for $name\n";
$in = imap_open($default_mailbox, $username, $password, OP_HALFOPEN, 1, $testparams);
diff --git a/ext/imap/tests/imap_alerts_error.phpt b/ext/imap/tests/imap_alerts_error.phpt
index 2baefc3da1..546d193c8f 100644
--- a/ext/imap/tests/imap_alerts_error.phpt
+++ b/ext/imap/tests/imap_alerts_error.phpt
@@ -2,7 +2,7 @@
Test imap_alerts() function : error conditions
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
diff --git a/ext/imap/tests/imap_append_basic.phpt b/ext/imap/tests/imap_append_basic.phpt
index 06b0c1d4a4..500d3afb69 100644
--- a/ext/imap/tests/imap_append_basic.phpt
+++ b/ext/imap/tests/imap_append_basic.phpt
@@ -2,7 +2,7 @@
Test imap_append() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -13,7 +13,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_append() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Create a new mailbox for test\n";
$imap_stream = setup_test_mailbox("", 0);
diff --git a/ext/imap/tests/imap_body.phpt b/ext/imap/tests/imap_body.phpt
index 77747c8d8a..a9b3bcd6e5 100644
--- a/ext/imap/tests/imap_body.phpt
+++ b/ext/imap/tests/imap_body.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ imap_body();
echo "Checking with incorrect parameter type\n";
imap_body('');
imap_body(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
imap_body($stream_id);
diff --git a/ext/imap/tests/imap_body_basic.phpt b/ext/imap/tests/imap_body_basic.phpt
index 3cfe3e3d6b..bc9f789c6a 100644
--- a/ext/imap/tests/imap_body_basic.phpt
+++ b/ext/imap/tests/imap_body_basic.phpt
@@ -2,7 +2,7 @@
Test imap_body() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -13,7 +13,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_body() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Create a new mailbox for test\n";
$imap_stream = setup_test_mailbox("", 1);
diff --git a/ext/imap/tests/imap_bodystruct_basic.phpt b/ext/imap/tests/imap_bodystruct_basic.phpt
index a5db378c00..07b552de96 100644
--- a/ext/imap/tests/imap_bodystruct_basic.phpt
+++ b/ext/imap/tests/imap_bodystruct_basic.phpt
@@ -2,7 +2,7 @@
Test imap_bodystruct() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing string imap_bodystruct : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Create a new mailbox for test and add a multipart msgs\n";
$imap_stream = setup_test_mailbox("", 1, $mailbox, "multipart");
diff --git a/ext/imap/tests/imap_clearflag_full_basic.phpt b/ext/imap/tests/imap_clearflag_full_basic.phpt
index 359c3af28c..017ca1b71e 100644
--- a/ext/imap/tests/imap_clearflag_full_basic.phpt
+++ b/ext/imap/tests/imap_clearflag_full_basic.phpt
@@ -2,7 +2,7 @@
Test imap_clearflag_full() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -13,7 +13,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_clearflag_full() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Create a new mailbox for test\n";
$imap_stream = setup_test_mailbox("", 10);
diff --git a/ext/imap/tests/imap_close_basic.phpt b/ext/imap/tests/imap_close_basic.phpt
index bbb78bfbf9..4a3f5d683f 100644
--- a/ext/imap/tests/imap_close_basic.phpt
+++ b/ext/imap/tests/imap_close_basic.phpt
@@ -2,7 +2,7 @@
Test imap_close() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -14,7 +14,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_close() : basic functionality ***\n";
// include file for required variables in imap_open()
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// Initialize required variables
$stream_id = setup_test_mailbox('', 3, $mailbox); // set up temp mailbox with 3 messages
@@ -40,7 +40,7 @@ var_dump( imap_close($stream_id) );
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_close() : basic functionality ***
diff --git a/ext/imap/tests/imap_close_error.phpt b/ext/imap/tests/imap_close_error.phpt
index 89cafab3ba..8bb43e6a3b 100644
--- a/ext/imap/tests/imap_close_error.phpt
+++ b/ext/imap/tests/imap_close_error.phpt
@@ -2,7 +2,7 @@
Test imap_close() function : error conditions - incorrect number of args
--SKIPIF--
<?php
-require_once (dirname(__FILE__).'/skipif.inc');
+require_once (__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -16,7 +16,7 @@ require_once (dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_close() : error conditions ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// Zero arguments
echo "\n-- Testing imap_close() function with Zero arguments --\n";
diff --git a/ext/imap/tests/imap_close_variation3.phpt b/ext/imap/tests/imap_close_variation3.phpt
index 777ca07124..d282ba1dfd 100644
--- a/ext/imap/tests/imap_close_variation3.phpt
+++ b/ext/imap/tests/imap_close_variation3.phpt
@@ -23,7 +23,7 @@ var_dump(imap_close($file_handle));
var_dump($file_handle);
echo "\n-- Directory Resource opened with opendir() --\n";
-var_dump($dir_handle = opendir(dirname(__FILE__)));
+var_dump($dir_handle = opendir(__DIR__));
var_dump(imap_close($dir_handle));
var_dump($dir_handle);
?>
diff --git a/ext/imap/tests/imap_close_variation4.phpt b/ext/imap/tests/imap_close_variation4.phpt
index 7a2d59b9b1..d71113ca85 100644
--- a/ext/imap/tests/imap_close_variation4.phpt
+++ b/ext/imap/tests/imap_close_variation4.phpt
@@ -2,7 +2,7 @@
Test imap_close() function : usage variations - different ints as $options arg
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_close() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$inputs = array (0, 3.2768e4, -32768, PHP_INT_MAX, -PHP_INT_MAX);
@@ -61,7 +61,7 @@ foreach($inputs as $input) {
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_close() : usage variations ***
diff --git a/ext/imap/tests/imap_createmailbox_basic.phpt b/ext/imap/tests/imap_createmailbox_basic.phpt
index e827af5960..9d3cb83058 100644
--- a/ext/imap/tests/imap_createmailbox_basic.phpt
+++ b/ext/imap/tests/imap_createmailbox_basic.phpt
@@ -2,7 +2,7 @@
Test imap_createmailbox() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -13,7 +13,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_createmailbox() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$imap_stream = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
diff --git a/ext/imap/tests/imap_errors_basic.phpt b/ext/imap/tests/imap_errors_basic.phpt
index e4c7721393..0a42e95e1f 100644
--- a/ext/imap/tests/imap_errors_basic.phpt
+++ b/ext/imap/tests/imap_errors_basic.phpt
@@ -2,7 +2,7 @@
Test imap_errors() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_errors() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$password = "bogus"; // invalid password to use in this test
echo "Issue open with invalid password with normal default number of retries, i.e 3\n";
diff --git a/ext/imap/tests/imap_expunge_error.phpt b/ext/imap/tests/imap_expunge_error.phpt
index f844cdcf11..f1298843bb 100644
--- a/ext/imap/tests/imap_expunge_error.phpt
+++ b/ext/imap/tests/imap_expunge_error.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
diff --git a/ext/imap/tests/imap_fetch_overview_basic.phpt b/ext/imap/tests/imap_fetch_overview_basic.phpt
index 152eaae9da..03aa9ae0a5 100644
--- a/ext/imap/tests/imap_fetch_overview_basic.phpt
+++ b/ext/imap/tests/imap_fetch_overview_basic.phpt
@@ -2,7 +2,7 @@
Test imap_fetch_overview() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -14,7 +14,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_fetch_overview() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// create a new mailbox and add two new messages to it
$stream_id = setup_test_mailbox('', 2, $mailbox, 'notSimple');
@@ -47,7 +47,7 @@ imap_close($stream_id);
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetch_overview() : basic functionality ***
diff --git a/ext/imap/tests/imap_fetch_overview_error.phpt b/ext/imap/tests/imap_fetch_overview_error.phpt
index 78510d6bd1..629535b0bf 100644
--- a/ext/imap/tests/imap_fetch_overview_error.phpt
+++ b/ext/imap/tests/imap_fetch_overview_error.phpt
@@ -2,7 +2,7 @@
Test imap_fetch_overview() function : error conditions - incorrect number of args
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_fetch_overview() : error conditions ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
//Test imap_fetch_overview with one more than the expected number of arguments
echo "\n-- Testing imap_fetch_overview() function with more than expected no. of arguments --\n";
@@ -35,7 +35,7 @@ var_dump( imap_fetch_overview($stream_id) );
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetch_overview() : error conditions ***
diff --git a/ext/imap/tests/imap_fetch_overview_variation3.phpt b/ext/imap/tests/imap_fetch_overview_variation3.phpt
index a73845d1d6..3c52c73d90 100644
--- a/ext/imap/tests/imap_fetch_overview_variation3.phpt
+++ b/ext/imap/tests/imap_fetch_overview_variation3.phpt
@@ -2,7 +2,7 @@
Test imap_fetch_overview() function : usage variations - FT_UID option
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -19,7 +19,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_fetch_overview() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// Initialise required variables
$stream_id = setup_test_mailbox('', 1); // set up temporary mailbox with one simple message
@@ -51,7 +51,7 @@ foreach($options as $option) {
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetch_overview() : usage variations ***
diff --git a/ext/imap/tests/imap_fetch_overview_variation4.phpt b/ext/imap/tests/imap_fetch_overview_variation4.phpt
index 4798344830..2aa89b75b6 100644
--- a/ext/imap/tests/imap_fetch_overview_variation4.phpt
+++ b/ext/imap/tests/imap_fetch_overview_variation4.phpt
@@ -24,7 +24,7 @@ var_dump(imap_fetch_overview($file_pointer, 1));
fclose($file_pointer);
echo "\n-- Directory Resource opened with opendir() --\n";
-var_dump($dir_handle = opendir(dirname(__FILE__)));
+var_dump($dir_handle = opendir(__DIR__));
var_dump(imap_fetch_overview($dir_handle, 1));
closedir($dir_handle);
?>
diff --git a/ext/imap/tests/imap_fetch_overview_variation5.phpt b/ext/imap/tests/imap_fetch_overview_variation5.phpt
index d713a33934..c052b39384 100644
--- a/ext/imap/tests/imap_fetch_overview_variation5.phpt
+++ b/ext/imap/tests/imap_fetch_overview_variation5.phpt
@@ -2,7 +2,7 @@
Test imap_fetch_overview() function : usage variations - $msg_no argument
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_fetch_overview() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 3, $mailbox, 'notSimple'); // set up temp mailbox with 3 msgs
@@ -45,7 +45,7 @@ imap_errors();
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetch_overview() : usage variations ***
diff --git a/ext/imap/tests/imap_fetch_overview_variation6.phpt b/ext/imap/tests/imap_fetch_overview_variation6.phpt
index 4c2d3234f7..d284f9bf94 100644
--- a/ext/imap/tests/imap_fetch_overview_variation6.phpt
+++ b/ext/imap/tests/imap_fetch_overview_variation6.phpt
@@ -2,7 +2,7 @@
Test imap_fetch_overview() function : usage variations - multipart message
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -17,7 +17,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_fetch_overview() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 0, $mailbox); // setup temp mailbox
create_multipart_message($stream_id, $mailbox);
@@ -88,7 +88,7 @@ function create_multipart_message($imap_stream, $mailbox) {
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetch_overview() : usage variations ***
diff --git a/ext/imap/tests/imap_fetchbody_basic.phpt b/ext/imap/tests/imap_fetchbody_basic.phpt
index 2986f0e89e..66fa345535 100644
--- a/ext/imap/tests/imap_fetchbody_basic.phpt
+++ b/ext/imap/tests/imap_fetchbody_basic.phpt
@@ -2,7 +2,7 @@
Test imap_fetchbody() function : basic functionality
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -13,7 +13,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_fetchbody() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// Initialise all required variables
@@ -59,7 +59,7 @@ var_dump( $overview[0]->seen );
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetchbody() : basic functionality ***
diff --git a/ext/imap/tests/imap_fetchbody_error.phpt b/ext/imap/tests/imap_fetchbody_error.phpt
index a91599a305..c45371a813 100644
--- a/ext/imap/tests/imap_fetchbody_error.phpt
+++ b/ext/imap/tests/imap_fetchbody_error.phpt
@@ -2,7 +2,7 @@
Test imap_fetchbody() function : error conditions - incorrect number of args
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -17,7 +17,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_fetchbody() : error conditions ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
//Test imap_fetchbody with one more than the expected number of arguments
echo "\n-- Testing imap_fetchbody() function with more than expected no. of arguments --\n";
@@ -38,7 +38,7 @@ var_dump( imap_fetchbody($stream_id, $msg_no) );
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetchbody() : error conditions ***
diff --git a/ext/imap/tests/imap_fetchbody_variation4.phpt b/ext/imap/tests/imap_fetchbody_variation4.phpt
index de336e4d50..3259ed9321 100644
--- a/ext/imap/tests/imap_fetchbody_variation4.phpt
+++ b/ext/imap/tests/imap_fetchbody_variation4.phpt
@@ -2,7 +2,7 @@
Test imap_fetchbody() function : usage variations - FT_UID option
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_fetchbody() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// Initialise required variables
$stream_id = setup_test_mailbox('', 1); // set up temporary mailbox with one simple message
@@ -48,7 +48,7 @@ foreach($options as $option) {
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetchbody() : usage variations ***
diff --git a/ext/imap/tests/imap_fetchbody_variation5.phpt b/ext/imap/tests/imap_fetchbody_variation5.phpt
index 50589e4d0b..fa32d0e995 100644
--- a/ext/imap/tests/imap_fetchbody_variation5.phpt
+++ b/ext/imap/tests/imap_fetchbody_variation5.phpt
@@ -24,7 +24,7 @@ var_dump(imap_fetchbody($file_pointer, 1));
fclose($file_pointer);
echo "\n-- Directory Resource opened with opendir() --\n";
-var_dump($dir_handle = opendir(dirname(__FILE__)));
+var_dump($dir_handle = opendir(__DIR__));
var_dump(imap_fetchbody($dir_handle, 1));
closedir($dir_handle);
?>
diff --git a/ext/imap/tests/imap_fetchbody_variation6.phpt b/ext/imap/tests/imap_fetchbody_variation6.phpt
index ba3f788935..18f7d3a40d 100644
--- a/ext/imap/tests/imap_fetchbody_variation6.phpt
+++ b/ext/imap/tests/imap_fetchbody_variation6.phpt
@@ -2,7 +2,7 @@
Test imap_fetchbody() function : usage variations - $msg_no arg
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_fetchbody() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
//Initialise required variables
$stream_id = setup_test_mailbox('', 3); // set up temp mailbox with simple msgs
@@ -39,7 +39,7 @@ foreach($sequences as $msg_no) {
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetchbody() : usage variations ***
diff --git a/ext/imap/tests/imap_fetchheader_basic.phpt b/ext/imap/tests/imap_fetchheader_basic.phpt
index 70bb66b2bd..4ffa34c09e 100644
--- a/ext/imap/tests/imap_fetchheader_basic.phpt
+++ b/ext/imap/tests/imap_fetchheader_basic.phpt
@@ -2,7 +2,7 @@
Test imap_fetchheader() function : basic function
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_fetchheader() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// Initialise all required variables
$stream_id = setup_test_mailbox('', 1, $mailbox, 'multiPart'); // setup temp mailbox with 1 msg
@@ -39,7 +39,7 @@ var_dump( imap_fetchheader($stream_id, $msg_no) );
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetchheader() : basic functionality ***
diff --git a/ext/imap/tests/imap_fetchheader_error.phpt b/ext/imap/tests/imap_fetchheader_error.phpt
index 77f6002eb5..82a47b64f1 100644
--- a/ext/imap/tests/imap_fetchheader_error.phpt
+++ b/ext/imap/tests/imap_fetchheader_error.phpt
@@ -2,7 +2,7 @@
Test imap_fetchheader() function : error conditions - incorrect number of args
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -16,7 +16,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
*/
echo "*** Testing imap_fetchheader() : error conditions ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
//Test imap_fetchheader with one more than the expected number of arguments
echo "\n-- Testing imap_fetchheader() function with more than expected no. of arguments --\n";
diff --git a/ext/imap/tests/imap_fetchheader_variation3.phpt b/ext/imap/tests/imap_fetchheader_variation3.phpt
index 728f8c3899..8230fdcf3e 100644
--- a/ext/imap/tests/imap_fetchheader_variation3.phpt
+++ b/ext/imap/tests/imap_fetchheader_variation3.phpt
@@ -2,7 +2,7 @@
Test imap_fetchheader() function : usage variations - FT_UID option
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -19,7 +19,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_fetchheader() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
// Initialise required variables
$stream_id = setup_test_mailbox('', 1); // set up temporary mailbox with one simple message
@@ -46,7 +46,7 @@ foreach($options as $option) {
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetchheader() : usage variations ***
diff --git a/ext/imap/tests/imap_fetchheader_variation4.phpt b/ext/imap/tests/imap_fetchheader_variation4.phpt
index 67c63077f4..05322f1527 100644
--- a/ext/imap/tests/imap_fetchheader_variation4.phpt
+++ b/ext/imap/tests/imap_fetchheader_variation4.phpt
@@ -23,7 +23,7 @@ var_dump(imap_fetchheader($file_pointer, 1));
fclose($file_pointer);
echo "\n-- Directory Resource opened with opendir() --\n";
-var_dump($dir_handle = opendir(dirname(__FILE__)));
+var_dump($dir_handle = opendir(__DIR__));
var_dump(imap_fetchheader($dir_handle, 1));
closedir($dir_handle);
?>
diff --git a/ext/imap/tests/imap_fetchheader_variation5.phpt b/ext/imap/tests/imap_fetchheader_variation5.phpt
index bdd6f6de60..8773621b09 100644
--- a/ext/imap/tests/imap_fetchheader_variation5.phpt
+++ b/ext/imap/tests/imap_fetchheader_variation5.phpt
@@ -2,7 +2,7 @@
Test imap_fetchheader() function : usage variations - $msg_no argument
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_fetchheader() : usage variations ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 3, $mailbox, 'notSimple'); // set up temp mailbox with 3 msgs
@@ -40,7 +40,7 @@ imap_errors();
===DONE===
--CLEAN--
<?php
-require_once(dirname(__FILE__).'/clean.inc');
+require_once(__DIR__.'/clean.inc');
?>
--EXPECTF--
*** Testing imap_fetchheader() : usage variations ***
diff --git a/ext/imap/tests/imap_fetchstructure_basic.phpt b/ext/imap/tests/imap_fetchstructure_basic.phpt
index dcf6148a1e..5d83a27427 100644
--- a/ext/imap/tests/imap_fetchstructure_basic.phpt
+++ b/ext/imap/tests/imap_fetchstructure_basic.phpt
@@ -4,7 +4,7 @@ imap_fetchstructure() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ echo "Checking with incorrect parameter type\n";
imap_fetchstructure('');
imap_fetchstructure(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 1);
imap_fetchstructure($stream_id);
diff --git a/ext/imap/tests/imap_gc_error.phpt b/ext/imap/tests/imap_gc_error.phpt
index 7bfd95b8c0..e9b2222778 100644
--- a/ext/imap/tests/imap_gc_error.phpt
+++ b/ext/imap/tests/imap_gc_error.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -16,7 +16,7 @@ echo "Checking with incorrect parameter type\n";
imap_gc('', false);
imap_gc(false, false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
imap_gc($stream_id, -1);
diff --git a/ext/imap/tests/imap_getsubscribed_basic.phpt b/ext/imap/tests/imap_getsubscribed_basic.phpt
index cfe526844b..666203a8c2 100644
--- a/ext/imap/tests/imap_getsubscribed_basic.phpt
+++ b/ext/imap/tests/imap_getsubscribed_basic.phpt
@@ -4,7 +4,7 @@ imap_getsubscribed() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ echo "Checking with incorrect parameter type\n";
imap_getsubscribed('');
imap_getsubscribed(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
diff --git a/ext/imap/tests/imap_headerinfo_basic.phpt b/ext/imap/tests/imap_headerinfo_basic.phpt
index 4334b62e8e..c13e62f8bf 100644
--- a/ext/imap/tests/imap_headerinfo_basic.phpt
+++ b/ext/imap/tests/imap_headerinfo_basic.phpt
@@ -4,12 +4,12 @@ imap_headerinfo() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 1);
$z = imap_headerinfo($stream_id, 1);
diff --git a/ext/imap/tests/imap_headerinfo_error.phpt b/ext/imap/tests/imap_headerinfo_error.phpt
index 9869c3472e..8d67b70130 100644
--- a/ext/imap/tests/imap_headerinfo_error.phpt
+++ b/ext/imap/tests/imap_headerinfo_error.phpt
@@ -4,7 +4,7 @@ imap_headerinfo() incorrect parameter count
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ echo "Checking with incorrect parameter type\n";
imap_headerinfo('');
imap_headerinfo(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
diff --git a/ext/imap/tests/imap_headers.phpt b/ext/imap/tests/imap_headers.phpt
index 60c04d406e..cd9d6d387f 100644
--- a/ext/imap/tests/imap_headers.phpt
+++ b/ext/imap/tests/imap_headers.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
diff --git a/ext/imap/tests/imap_list_basic.phpt b/ext/imap/tests/imap_list_basic.phpt
index edd899c921..21f8a63894 100644
--- a/ext/imap/tests/imap_list_basic.phpt
+++ b/ext/imap/tests/imap_list_basic.phpt
@@ -4,7 +4,7 @@ imap_list() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ echo "Checking with incorrect parameter type\n";
imap_list('');
imap_list(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
diff --git a/ext/imap/tests/imap_lsub_basic.phpt b/ext/imap/tests/imap_lsub_basic.phpt
index 0f7149917e..638479ca80 100644
--- a/ext/imap/tests/imap_lsub_basic.phpt
+++ b/ext/imap/tests/imap_lsub_basic.phpt
@@ -4,7 +4,7 @@ imap_lsub() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ echo "Checking with incorrect parameter type\n";
imap_lsub('');
imap_lsub(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());
diff --git a/ext/imap/tests/imap_mail_copy.phpt b/ext/imap/tests/imap_mail_copy.phpt
index c2aae5b176..12a85a1804 100644
--- a/ext/imap/tests/imap_mail_copy.phpt
+++ b/ext/imap/tests/imap_mail_copy.phpt
@@ -4,7 +4,7 @@ Test imap_mail_copy() incorrect parameters
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ imap_mail_copy(false);
// more tests
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Test with IMAP server\n";
diff --git a/ext/imap/tests/imap_mail_copy_basic.phpt b/ext/imap/tests/imap_mail_copy_basic.phpt
index 2171403cd1..a05951e8f6 100644
--- a/ext/imap/tests/imap_mail_copy_basic.phpt
+++ b/ext/imap/tests/imap_mail_copy_basic.phpt
@@ -4,7 +4,7 @@ Test imap_mail_copy() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_mail_copy() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Create a new mailbox for test\n";
diff --git a/ext/imap/tests/imap_mail_move.phpt b/ext/imap/tests/imap_mail_move.phpt
index 7d8e489557..122960b78c 100644
--- a/ext/imap/tests/imap_mail_move.phpt
+++ b/ext/imap/tests/imap_mail_move.phpt
@@ -4,7 +4,7 @@ Test imap_mail_move() incorrect parameters
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -18,7 +18,7 @@ imap_mail_move(false);
// more tests
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Test with IMAP server\n";
diff --git a/ext/imap/tests/imap_mail_move_basic.phpt b/ext/imap/tests/imap_mail_move_basic.phpt
index f33f4963fa..380d288d9b 100644
--- a/ext/imap/tests/imap_mail_move_basic.phpt
+++ b/ext/imap/tests/imap_mail_move_basic.phpt
@@ -4,7 +4,7 @@ Test imap_mail_move() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ require_once(dirname(__FILE__).'/skipif.inc');
echo "*** Testing imap_mail_move() : basic functionality ***\n";
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
echo "Create a new mailbox for test\n";
diff --git a/ext/imap/tests/imap_num_msg_error.phpt b/ext/imap/tests/imap_num_msg_error.phpt
index 69fb23f55b..fffa3ae951 100644
--- a/ext/imap/tests/imap_num_msg_error.phpt
+++ b/ext/imap/tests/imap_num_msg_error.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
diff --git a/ext/imap/tests/imap_num_recent_error.phpt b/ext/imap/tests/imap_num_recent_error.phpt
index 8929c46297..b0ad5cefa0 100644
--- a/ext/imap/tests/imap_num_recent_error.phpt
+++ b/ext/imap/tests/imap_num_recent_error.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
diff --git a/ext/imap/tests/imap_open_error.phpt b/ext/imap/tests/imap_open_error.phpt
index 83b0eba80e..b94c11d797 100644
--- a/ext/imap/tests/imap_open_error.phpt
+++ b/ext/imap/tests/imap_open_error.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -20,7 +20,7 @@ echo "Checking with incorrect parameters\n" ;
imap_open('', '', '');
imap_open('', '', '', -1);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
imap_open($default_mailbox, $username, $password, NIL, -1);
?>
diff --git a/ext/imap/tests/imap_ping_error.phpt b/ext/imap/tests/imap_ping_error.phpt
index 4757967d02..5c2498c302 100644
--- a/ext/imap/tests/imap_ping_error.phpt
+++ b/ext/imap/tests/imap_ping_error.phpt
@@ -5,7 +5,7 @@ Paul Sohier
#phptestfest utrecht
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
diff --git a/ext/imap/tests/imap_renamemailbox_basic.phpt b/ext/imap/tests/imap_renamemailbox_basic.phpt
index d8b3f485e5..91f99d13e3 100644
--- a/ext/imap/tests/imap_renamemailbox_basic.phpt
+++ b/ext/imap/tests/imap_renamemailbox_basic.phpt
@@ -4,7 +4,7 @@ imap_renamemailbox() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -16,7 +16,7 @@ imap_renamemailbox('');
imap_renamemailbox(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 1);
diff --git a/ext/imap/tests/imap_rfc822_parse_headers_basic.phpt b/ext/imap/tests/imap_rfc822_parse_headers_basic.phpt
index ee17fb39b9..36fcc7f077 100644
--- a/ext/imap/tests/imap_rfc822_parse_headers_basic.phpt
+++ b/ext/imap/tests/imap_rfc822_parse_headers_basic.phpt
@@ -4,12 +4,12 @@ imap_rfc822_parse_headers() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 1);
$z = imap_headerinfo($stream_id, 1);
diff --git a/ext/imap/tests/imap_savebody_basic.phpt b/ext/imap/tests/imap_savebody_basic.phpt
index 0c03d0033d..2be987a361 100644
--- a/ext/imap/tests/imap_savebody_basic.phpt
+++ b/ext/imap/tests/imap_savebody_basic.phpt
@@ -4,7 +4,7 @@ imap_savebody() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,12 +15,12 @@ echo "Checking with incorrect parameter type\n";
imap_savebody('');
imap_savebody(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 1);
imap_savebody($stream_id);
-$file = dirname(__FILE__).'/tmpsavebody.txt';
+$file = __DIR__.'/tmpsavebody.txt';
//with URL
$z = imap_savebody($stream_id, $file, 1);
@@ -38,7 +38,7 @@ imap_close($stream_id);
?>
--CLEAN--
<?php
-@unlink(dirname(__FILE__).'/tmpsavebody.txt');
+@unlink(__DIR__.'/tmpsavebody.txt');
require_once('clean.inc');
?>
--EXPECTF--
diff --git a/ext/imap/tests/imap_timeout_basic.phpt b/ext/imap/tests/imap_timeout_basic.phpt
index 92c43bded7..a69b86b595 100644
--- a/ext/imap/tests/imap_timeout_basic.phpt
+++ b/ext/imap/tests/imap_timeout_basic.phpt
@@ -4,7 +4,7 @@ imap_timeout() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
diff --git a/ext/imap/tests/imap_undelete_basic.phpt b/ext/imap/tests/imap_undelete_basic.phpt
index 1ec02600d7..7cc9ff3847 100644
--- a/ext/imap/tests/imap_undelete_basic.phpt
+++ b/ext/imap/tests/imap_undelete_basic.phpt
@@ -4,12 +4,12 @@ imap_undelete() function : basic functionality
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = setup_test_mailbox('', 1);
imap_delete($stream_id, 1);
diff --git a/ext/imap/tests/imap_undelete_error.phpt b/ext/imap/tests/imap_undelete_error.phpt
index 3366c04f05..0eae8033eb 100644
--- a/ext/imap/tests/imap_undelete_error.phpt
+++ b/ext/imap/tests/imap_undelete_error.phpt
@@ -4,7 +4,7 @@ imap_undelete() incorrect parameter count
Olivier Doucet
--SKIPIF--
<?php
-require_once(dirname(__FILE__).'/skipif.inc');
+require_once(__DIR__.'/skipif.inc');
?>
--FILE--
<?php
@@ -15,7 +15,7 @@ echo "Checking with incorrect parameter type\n";
imap_undelete('');
imap_undelete(false);
-require_once(dirname(__FILE__).'/imap_include.inc');
+require_once(__DIR__.'/imap_include.inc');
$stream_id = imap_open($default_mailbox, $username, $password) or
die("Cannot connect to mailbox $default_mailbox: " . imap_last_error());