1--TEST--
2Check that SplObjectStorage::attach generates a warning and returns NULL when bad params are passed
3--CREDITS--
4PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
5--FILE--
6<?php
7
8$s = new SplObjectStorage();
9
10var_dump($s->attach(true));
11var_dump($s->attach(new stdClass, true, true));
12
13?>
14--EXPECTF--
15Warning: SplObjectStorage::attach() expects parameter 1 to be object, boolean given in %s on line %d
16NULL
17
18Warning: SplObjectStorage::attach() expects at most 2 parameters, 3 given in %s on line %d
19NULL
20
21