for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PSFS\tests\examples;
use PSFS\base\Request;
use PSFS\base\Service;
/**
* Class AuthServiceTest
* @package PSFS\tests\examples
*/
final class AuthServiceTest extends Service {
public function test($user, $password) {
$this->setUrl('https://jsonplaceholder.typicode.com/todos');
$this->addAuthHeader($user, $password);
$this->addRequestToken($password, 'TEST');
$this->setDebug(true);
$this->setIsJson();
$this->setType(Request::VERB_GET);
$this->callSrv();
}