--TEST-- Check that SplObjectStorage::contains generate a warning and returns NULL when passed non-object param --CREDITS-- PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) --FILE-- contains($input)); } ?> --EXPECTF-- Warning: SplObjectStorage::contains() expects parameter 1 to be object, array given in %s on line %d NULL Warning: SplObjectStorage::contains() expects parameter 1 to be object, bool given in %s on line %d NULL Warning: SplObjectStorage::contains() expects parameter 1 to be object, string given in %s on line %d NULL Warning: SplObjectStorage::contains() expects parameter 1 to be object, int given in %s on line %d NULL Warning: SplObjectStorage::contains() expects parameter 1 to be object, float given in %s on line %d NULL Warning: SplObjectStorage::contains() expects parameter 1 to be object, null given in %s on line %d NULL