/** * Testing the ordering method * @return void */ public function testCardsList() { $result = Order::this()->cardsList($this->unorderedlist); // assert the result array has the first destiation from Madrid $this->assertEquals($result[0]["from"], "Madrid"); // assert to the real ordered list $this->assertEquals($result, $this->orderedlist); }