PHP code example of ssaweb / appwrite-test-utils
1. Go to this page and download the library: Download ssaweb/appwrite-test-utils library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ssaweb / appwrite-test-utils example snippets
$this->response = $this->createMock(stdClass::class);
$this->response
->expects($this->once())
->method('json')
->with($this->anything(), 201);
$this->response = $this->createMock(Response::class);
$this->response
->expects($this->once())
->method('json')
->with($this->anything(), 201);