/** * Sets the area of the triangle. */ public function setArea() { $this->area = $this->sides->getArea(); }
public function testGetArea() { $triangle = new TriangleSides(3, 4, 5); $this->assertEquals(6.0, $triangle->getArea()); }