Exemplo n.º 1
0
 /**
  * @test
  */
 public function shouldCallPost()
 {
     $this->setUp();
     $this->guzzleMock->expects($this->once())->method('post')->will($this->returnValue($this->getMock('Guzzle\\Http\\Message\\RequestInterface')));
     $this->testApi->post('/', array('name' => 'Henk'));
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function shouldCallPost()
 {
     $this->setUp();
     $this->adapter->expects($this->once())->method('post')->will($this->returnValue([]));
     $this->testApi->post('/', ['name' => 'Henk']);
 }