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