/**
  * This method tests the "id" method.
  */
 public function test_id()
 {
     $p0 = IUnit\Module::id(IUnit\Type::instance(), IUnit\Type::instance());
     $e0 = true;
     $this->assertInstanceOf('\\Saber\\Data\\IBool\\Type', $p0);
     $this->assertSame($e0, $p0->unbox());
 }
Exemple #2
0
 /**
  * This method evaluates whether the left operand is NOT identical to the right operand.
  *
  * @access public
  * @static
  * @param IUnit\Type $x                                     the left operand
  * @param Core\Type $y                                      the right operand
  * @return IBool\Type                                       whether the left operand is NOT identical
  *                                                          to the right operand
  */
 public static function ni(IUnit\Type $x, Core\Type $y) : IBool\Type
 {
     // !==
     return IBool\Module::not(IUnit\Module::id($x, $y));
 }