예제 #1
0
 public function testCompareStatuses()
 {
     $this->assertLessThan(0, Deal::compareStatuses(Deal::STATUS_VALUATION, Deal::STATUS_AVAILABLE));
     $this->assertLessThan(0, Deal::compareStatuses(Deal::STATUS_VALUATION, Deal::STATUS_PROOFING));
     $this->assertLessThan(0, Deal::compareStatuses(Deal::STATUS_VALUATION, Deal::STATUS_PRODUCTION));
     $this->assertLessThan(0, Deal::compareStatuses(Deal::STATUS_PRODUCTION, Deal::STATUS_PROOFING));
     $this->assertEquals(0, Deal::compareStatuses(Deal::STATUS_PRODUCTION, Deal::STATUS_PRODUCTION));
     $this->assertEquals(0, Deal::compareStatuses(Deal::STATUS_VALUATION, Deal::STATUS_VALUATION));
     $this->assertGreaterThan(0, Deal::compareStatuses(Deal::STATUS_AVAILABLE, Deal::STATUS_VALUATION));
     $this->assertGreaterThan(0, Deal::compareStatuses(Deal::STATUS_AVAILABLE, Deal::STATUS_PRODUCTION));
     $this->assertGreaterThan(0, Deal::compareStatuses(Deal::STATUS_AVAILABLE, Deal::STATUS_PROOFING));
     $this->assertGreaterThan(0, Deal::compareStatuses(Deal::STATUS_UNDER_OFFER_WITH_OTHER, Deal::STATUS_UNDER_OFFER));
     $this->assertGreaterThan(0, Deal::compareStatuses(Deal::STATUS_UNDER_OFFER_WITH_OTHER, Deal::STATUS_AVAILABLE));
 }