public function containsWithGenerics() { $a = new ArrayList(new Integer(1), new Integer(2), new Integer(3)); $this->assertTrue(Arrays::contains($a, new Integer(1))); $this->assertFalse(Arrays::contains($a, new Integer(5))); $this->assertFalse(Arrays::contains($a, new Float(1.0))); }