/** * @depends testConstruct */ public function testVolume(Shapes\Sphere $sphere) { $this->assertTrue(is_numeric($sphere->volume())); }
public function testVolume() { $radius = 90; $sphere = new Shapes\Sphere($radius); $this->assertEquals(4 / 3 * pi() * pow($radius, 3), $sphere->volume()); }
public function testSphereVolume() { $sphere = new Shapes\Sphere(3); $this->assertEquals(113.09733552923, $sphere->volume()); }