Exemplo n.º 1
0
 public function testGetCubeArea()
 {
     $cube = new Shapes\Cube(6);
     $area = $cube->area($cube);
     $this->assertEquals(216, $area);
 }
Exemplo n.º 2
0
 public function testArea()
 {
     $side = 25;
     $cube = new Shapes\Cube($side);
     $this->assertEquals(6 * pow($side, 2), $cube->area());
 }
Exemplo n.º 3
0
 public function testCubeArea()
 {
     $cube = new Shapes\Cube(3);
     $this->assertEquals(54, $cube->area());
 }
Exemplo n.º 4
0
 public function testArea()
 {
     $cube = new Shapes\Cube($this->side);
     $area = 6 * pow($this->side, 2);
     $this->assertEquals($cube->area(), $area);
 }
Exemplo n.º 5
0
 /**
  * @depends testConstruct
  */
 public function testArea(Shapes\Cube $cube)
 {
     $this->assertTrue(is_numeric($cube->area()));
 }