public function testIndexOf() { $notExistObj = new Base(); $notExistObj->setId(78979); $this->assertFalse($this->arrayCollection->indexOf($notExistObj)); $this->assertEquals(0, $this->arrayCollection->indexOf($this->data[0])); }