コード例 #1
0
ファイル: CostsTest.php プロジェクト: arthurd2/order-at-cloud
 /**
  * @expectedException Exception
  */
 public function testExceptionRulesFreeOfContext()
 {
     $handler = Costs::getInstance();
     $this->assertEquals('Costs', get_class($handler), "Class Does not match");
     $handler->add('xxx');
 }
コード例 #2
0
ファイル: Costs.php プロジェクト: arthurd2/order-at-cloud
 static function getMainCost()
 {
     $costs = Costs::getInstance();
     return $costs->mainCostClass;
 }