public function testLastIndexOf() { $list = new ArrayList([5, 4, 3, 2, 1, 3]); $this->assertEquals(0, $list->lastIndexOf(5)); $this->assertEquals(ArrayList::NO_INDEX, $list->lastIndexOf(10)); }