public function setCapture($capture)
{
if (!is_bool($capture)) {
throw new \UnexpectedValueException('Indicador de captura deve ser um boolean');
}
$this->capture = $capture;
}
/** * @test */ public function setCaptureThrowsUnexpectedValue() { $this->setExpectedException(\UnexpectedValueException::class); $this->transaction->setCapture(0); }