phalApiRequestFormatterArray = new PhalApi_Request_Formatter_Array(); } protected function tearDown() { } /** * @group testParse */ public function testParse() { $value = '1|2|3|4|5'; $rule = array('name' => 'testKey', 'type' => 'array', 'format' => 'explode', 'separator' => '|'); $rs = $this->phalApiRequestFormatterArray->parse($value, $rule); $this->assertTrue(is_array($rs)); $this->assertEquals(array(1, 2, 3, 4, 5), $rs); } }