Beispiel #1
0
 /**
  * @covers shisoku::div
  */
 public function testDiv()
 {
     $this->assertEquals(3, $this->object->div());
 }
Beispiel #2
0
<?php

include_once "shisoku.inc";
// test viewing
$ans = new shisoku(6, 2);
echo $ans->add() . "\n";
echo $ans->sub() . "\n";
echo $ans->mul() . "\n";
echo $ans->div() . "\n";