/**
  * @test
  */
 public function shouldNotMatchOthersThenSuspendedStatus()
 {
     $statusRequest = new SimpleStatusRequest(new \stdClass());
     $statusRequest->markSuspended();
     $this->assertTrue($statusRequest->isSuspended());
     $this->assertFalse($statusRequest->isSuccess());
     $this->assertFalse($statusRequest->isExpired());
     $this->assertFalse($statusRequest->isCanceled());
     $this->assertFalse($statusRequest->isPending());
     $this->assertFalse($statusRequest->isFailed());
     $this->assertFalse($statusRequest->isNew());
     $this->assertFalse($statusRequest->isUnknown());
 }
 /**
  * @test
  */
 public function shouldMarkUnknownIfStatusCouldBeGuessed()
 {
     $action = new StatusAction();
     $model = array('card' => array('foo'), 'captured' => false, 'paid' => true);
     $status = new SimpleStatusRequest($model);
     $status->markPending();
     $action->execute($status);
     $this->assertTrue($status->isUnknown());
 }