/** * @test */ public function shouldMarkUnknownIfExecCodeTimeOut() { $action = new StatusAction(); $action->execute($status = new GetHumanStatus(array('EXECCODE' => Api::EXECCODE_TIME_OUT))); $this->assertTrue($status->isUnknown()); }
/** * @test * * @expectedException \Payum\Core\Exception\RequestNotSupportedException */ public function throwIfNotSupportedRequestGivenAsArgumentForExecute() { $action = new StatusAction(); $action->execute(new \stdClass()); }