Ejemplo n.º 1
0
 public function testAssertations()
 {
     $t = new \Test\Properties\PrivateProperties();
     $this->assertNull($t->getSomeNull());
     $this->assertNull($t->getSomeNullInitial());
     $this->assertFalse($t->getSomeFalse());
     $this->assertTrue($t->getSomeTrue());
     $this->assertSame($t->getSomeInteger(), 10);
     $this->assertSame($t->getSomeDouble(), 10.25);
     $this->assertSame($t->getSomeString(), 'test');
 }
Ejemplo n.º 2
0
 public function testAssertations()
 {
     $t = new \Test\Properties\PrivateProperties();
     $this->assertTrue($t->getSomeNull() === null);
     $this->assertTrue($t->getSomeNullInitial() === null);
     $this->assertTrue($t->getSomeFalse() === false);
     $this->assertTrue($t->getSomeTrue() === true);
     $this->assertTrue($t->getSomeInteger() === 10);
     $this->assertTrue($t->getSomeDouble() === 10.25);
     $this->assertTrue($t->getSomeString() === "test");
 }