/** * This method tests the filter method * of the CollectionUtils. * * @return void */ public function testFilter() { // filter all elements with lastname CollectionUtils::filter($this->list, new TestPredicate("Albert")); $this->assertEquals(1, $this->list->size()); }