assertEquals(1, $p->x); $this->assertEquals(2, $p->y); } public function testPointFrom(): void { $p = Point::new(3, 7); $p2 = Point::from($p); $this->assertEquals($p->x, $p2->x); $this->assertEquals($p->y, $p2->y); } }