Beispiel #1
0
 public function testPayload()
 {
     $p = new Price();
     foreach ($this->payload as $testCase) {
         echo "Testing case: " . json_encode($testCase) . "\n";
         $p->setPricePerMinute($testCase["ppm"]);
         $this->assertEquals($p->calculateCallCost($testCase["duration"]), $testCase["result"]);
     }
 }