Open Journal Systems  3.3.0
MockCommand.php
1 <?php
2 
4 
6 
8 {
9  protected function createOperation()
10  {
11  return new Operation(array(
12  'name' => get_called_class() == __CLASS__ ? 'mock_command' : 'sub.sub',
13  'httpMethod' => 'POST',
14  'parameters' => array(
15  'test' => array(
16  'default' => 123,
17  'required' => true,
18  'doc' => 'Test argument'
19  ),
20  '_internal' => array(
21  'default' => 'abc'
22  ),
23  'foo' => array('filters' => array('strtoupper'))
24  )
25  ));
26  }
27 
28  protected function build()
29  {
30  $this->request = $this->client->createRequest();
31  }
32 }
Guzzle\Tests\Service\Mock\Command\MockCommand\createOperation
createOperation()
Definition: MockCommand.php:9
Guzzle\Service\Description\Operation
Definition: Operation.php:10
Guzzle\Tests\Service\Mock\Command\MockCommand
Definition: MockCommand.php:7
Guzzle\Tests\Service\Mock\Command
Definition: IterableCommand.php:3
Guzzle\Service\Command\AbstractCommand
Definition: AbstractCommand.php:21
Guzzle\Tests\Service\Mock\Command\MockCommand\build
build()
Definition: MockCommand.php:28