1--TEST--
2Check that passing a parameter to toArray() produces a correct error
3--CREDITS--
4PHPNW Testfest 2009 - Paul Court ( g@rgoyle.com )
5--FILE--
6<?php
7	// Create a fixed array
8	$fixedArray = new SplFixedArray(5);
9
10	// Fill it up
11	for ($i=0; $i < 5; $i++) {
12		$fixedArray[$i] = "PHPNW Testfest";
13	}
14
15	// Test count() returns correct error when parameters are passed.
16	$fixedArray->count(1);
17?>
18--EXPECTF--
19Warning: SplFixedArray::count() expects exactly 0 parameters, %d given in %s on line %d
20