summaryrefslogtreecommitdiff
path: root/ext/imap/tests/imap_constructor.phpt
blob: bc5da991d18d59fda53c202c6a3ebc97e96f5d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Attempt to instantiate an IMAPConnection directly
--SKIPIF--
<?php
extension_loaded('imap') or die('skip imap extension not available in this build');
--FILE--
<?php

try {
    new IMAPConnection();
} catch (Error $ex) {
    echo "Exception: ", $ex->getMessage(), "\n";
}
--EXPECT--
Exception: Cannot directly construct IMAPConnection, use imap_open() instead