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