Ejemplo n.º 1
0
 public function testConstantGetters()
 {
     $t = new Constants();
     $this->assertNull($t->getPropertyC1());
     $this->assertFalse($t->getPropertyC2());
     $this->assertTrue($t->getPropertyC3());
     $this->assertSame($t->getPropertyC4(), 10);
     $this->assertSame($t->getPropertyC5(), 10.25);
     $this->assertSame($t->getPropertyC6(), "test");
 }
Ejemplo n.º 2
0
 public function testConstantGetters()
 {
     $t = new Constants();
     $this->assertTrue($t->getPropertyC1() === null);
     $this->assertTrue($t->getPropertyC2() === false);
     $this->assertTrue($t->getPropertyC3() === true);
     $this->assertTrue($t->getPropertyC4() === 10);
     $this->assertTrue($t->getPropertyC5() === 10.25);
     $this->assertTrue($t->getPropertyC6() === "test");
 }