Beispiel #1
0
 /**
  * This method tests the "ni" method.
  */
 public function test_ni()
 {
     $x = IBool\Type::true();
     $y = IBool\Type::false();
     $z = IBool\Module::ni($x, $x);
     $this->assertInstanceOf('\\Saber\\Data\\IBool\\Type', $z);
     $this->assertSame(false, $z->unbox());
     $z = IBool\Module::ni($x, $y);
     $this->assertInstanceOf('\\Saber\\Data\\IBool\\Type', $z);
     $this->assertSame(true, $z->unbox());
 }