Exemplo n.º 1
0
 public function testNotEquals()
 {
     $t = new Compare();
     $this->assertTrue($t->testNotIdenticalZeroVar());
     $this->assertTrue($t->testNotIdenticalZeroInt());
     $this->assertTrue($t->testNotIdenticalZeroLong());
 }
Exemplo n.º 2
0
 public function testVarWithStringEquals()
 {
     $t = new Compare();
     $this->assertEquals('NOK', $t->testVarWithStringEquals('wrong testing'));
     $this->assertEquals('NOK', $t->testVarWithStringEquals('another testing'));
     $this->assertEquals('OK', $t->testVarWithStringEquals('testing'));
     $this->assertEquals('NOK', $t->testVarWithStringEquals('testing nok'));
 }