/** * @test */ public function shouldNotMatchOthersThenFailedStatus() { $statusRequest = new GetBinaryStatus(new \stdClass()); $statusRequest->markFailed(); $this->assertTrue($statusRequest->isFailed()); $this->assertFalse($statusRequest->isCaptured()); $this->assertFalse($statusRequest->isSuspended()); $this->assertFalse($statusRequest->isExpired()); $this->assertFalse($statusRequest->isCanceled()); $this->assertFalse($statusRequest->isPending()); $this->assertFalse($statusRequest->isNew()); $this->assertFalse($statusRequest->isUnknown()); }
/** * @test */ public function shouldNotMatchOthersThenFailedStatus() { $getStatus = new GetBinaryStatus(new \stdClass()); $getStatus->markFailed(); $this->assertTrue($getStatus->isFailed()); $this->assertFalse($getStatus->isCaptured()); $this->assertFalse($getStatus->isPayedout()); $this->assertFalse($getStatus->isAuthorized()); $this->assertFalse($getStatus->isSuspended()); $this->assertFalse($getStatus->isExpired()); $this->assertFalse($getStatus->isCanceled()); $this->assertFalse($getStatus->isPending()); $this->assertFalse($getStatus->isNew()); $this->assertFalse($getStatus->isUnknown()); }