/** * Input a value that serves as the length of 1 side * of a cube and returns the surface area. * * @covers Cube::surface_area */ public function testCubeSurfaceAreaComputationIsCorrect() { //Set a mock value for the cube's length of side. //and compute the surface area based on the //surface area math formula for a cube. $length_of_side = 20; $surface_area = 6 * sqrt($length_of_side); $this->assertEquals($this->cube->surface_area(), $surface_area); }