示例#1
0
 public function testOptionalParameterInt()
 {
     $t = new Mcall();
     $this->assertSame($t->optionalParameterInt(1), 1);
     $this->assertSame($t->optionalParameterInt(), 2);
 }
示例#2
0
 public function testOptionalParameterInt()
 {
     $t = new Mcall();
     $this->assertTrue($t->optionalParameterInt(1) == 1);
     $this->assertTrue($t->optionalParameterInt() == 2);
 }