Exemplo n.º 1
0
 public function testToStringFalse()
 {
     $s = new Boolean(false);
     $this->assertEquals("false", $s->__toString());
 }
Exemplo n.º 2
0
 /**
  * This test checks the Boolean's __constructor() method
  * with a valid string value 'n'.
  *
  * @return void
  */
 public function testToStringWithStringValueN()
 {
     // initialize a new Boolean instance
     $boolean = new Boolean('n');
     // check that the two boolean are equal
     $this->assertEquals('false', $boolean->__toString());
 }