for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\MakeSure;
class Chain
{
private $phpunit;
public function __construct($phpunit)
$this->phpunit = $phpunit;
}
public $http = [];
public $assertion = [];
public $event;
public $exception;
public function __destruct()
(new CheckExpectations($this, $this->phpunit))->check();
/**
* @param $uri
* @param array $data
* @param array $headers
* @param $str
*/
public function http($uri, array $data, array $headers, $str)
$this->http = [
'method' => $str,
'url' => $uri,
'data' => $data,
'headers' => $headers,
];