public function testParseFunction_danglingParam5() { $filterText = 'funct(, hello, ,there,,buddy, )'; $p = new CFDBFilterParser(); $array = $p->parseFunction($filterText); $this->assertEquals('funct', $array[0]); $this->assertEquals('hello', $array[1]); $this->assertEquals('there', $array[2]); $this->assertEquals('buddy', $array[3]); $this->assertEquals(4, count($array)); }