1--TEST--
2DatePeriod: Test wrong __construct parameter
3--CREDITS--
4Havard Eide <nucleuz@gmail.com>
5#PHPTestFest2009 Norway 2009-06-09 \o/
6--INI--
7date.timezone=UTC
8--FILE--
9<?php
10
11try {
12    new DatePeriod();
13} catch (TypeError $exception) {
14    echo $exception->getMessage() . "\n";
15}
16?>
17--EXPECT--
18DatePeriod::__construct() accepts (DateTimeInterface, DateInterval, int [, int]), or (DateTimeInterface, DateInterval, DateTime [, int]), or (string [, int]) as arguments
19