1--TEST--
2Attempt to instantiate an IMAP\Connection directly
3--EXTENSIONS--
4imap
5--FILE--
6<?php
7
8try {
9    new IMAP\Connection();
10} catch (Error $ex) {
11    echo "Exception: ", $ex->getMessage(), "\n";
12}
13--EXPECT--
14Exception: Cannot directly construct IMAP\Connection, use imap_open() instead
15