示例#1
0
 /**
  * @covers shisoku::add
  */
 public function testAdd()
 {
     $this->assertEquals(8, $this->object->add());
 }
示例#2
0
文件: main.php 项目: a-tsu/phpunit
<?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";