/** * @covers tarcisio\p2d\Point::setLength */ public function testSetLength() { $p = new Point(); $p->setLength(10); $this->assertEquals(10, $p->x); $this->assertEquals(0, $p->y); $p = new Point(100, 100); $p->setLength(10); $this->assertEquals(10, $p->getLength()); $p = new Point(0, 10); $c = clone $p; $p->setLength(0); $this->assertEquals($c, $p); }