function testMatch() { $a = new Collection(array('foo', 'boo', 'bar')); $this->assertEquals(array('foo', 'boo'), $a->match('/o{2}/')->asArray()); }