public function testGetSquareArea() { $square = new Shapes\Square(25); $area = $square->area($square); $this->assertEquals(5, $area); }
public function testSquareArea() { $square = new Shapes\Square(3); $this->assertEquals(9, $square->area()); }
public function testArea() { $side = 25; $square = new Shapes\Square($side); $this->assertEquals(pow($side, 2), $square->area()); }
public function testArea() { $square = new Shapes\Square($this->side); $area = pow($this->side, 2); $this->assertEquals($square->area(), $area); }