Пример #1
0
 /**
  * @expectedException \Vnphp\PlagiarismChecker\Exception\ApiCallException
  */
 public function testException()
 {
     $apiResponse = $this->getResponseMock(['error_code' => 142, 'error_desc' => 'Нехватка баланса']);
     $this->browser->expects($this->once())->method('post')->with("http://api.text.ru/post")->will($this->returnValue($apiResponse));
     $this->api->request('test');
 }