for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\MakeSure\Expectations;
use Imanghafoori\HeyMan\MakeSure\Chain;
class Response
{
private $chain;
/**
* Response constructor.
*
* @param $chain
*/
public function __construct(Chain $chain)
$this->chain = $chain;
}
public function redirect($url, $status = null)
$this->chain->addAssertion('assertRedirect', $url);
if (!is_null($status)) {
$this->statusCode($status);
return $this;
public function statusCode($code)
$this->chain->addAssertion('assertStatus', $code);
public function success()
$this->chain->addAssertion('assertSuccessful');
public function withError($value)
$this->chain->addAssertion('assertSessionHasErrors', $value);
public function forbiddenStatus()
return $this->statusCode(403);