17 $visitor =
new Visitor();
21 $visitor->visit($this->command, $this->request,
$param->setSentAs(
'test_3'), __FILE__);
22 $this->assertInternalType(
'array', $this->request->getPostFile(
'test_3'));
25 $visitor->visit($this->command, $this->request,
$param->setSentAs(
null),
new PostFile(
'baz', __FILE__));
26 $this->assertInternalType(
'array', $this->request->getPostFile(
'baz'));
32 'operations' => array(
34 'httpMethod' =>
'POST',
35 'parameters' => array(
37 'location' =>
'postFile',
38 'type' => array(
'string',
'array')
45 $this->
getServer()->enqueue(array(
"HTTP/1.1 200 OK\r\nContent-Length:0\r\n\r\n"));
47 $client->setDescription($description);
48 $command = $client->getCommand(
'DoPost', array(
'foo' => array(__FILE__, __FILE__)));
50 $received = $this->
getServer()->getReceivedRequests();
51 $this->assertContains(
'name="foo[0]";', $received[0]);
52 $this->assertContains(
'name="foo[1]";', $received[0]);