/** * @link https://github.com/phalcon/zephir/issues/144 */ public function testPregMatchAllFlags() { $t = new Pregmatch(); $arr = $t->testMatchAllInZep(); $this->assertSame($arr[0], array(array('test1', 'test2'), array('test1', 'test2'))); $this->assertSame($arr[1], array(array('test1', 'test1'), array('test2', 'test2'))); }
/** * @link https://github.com/phalcon/zephir/issues/287 */ public function testCollectMatches() { $t = new Pregmatch(); $this->assertSame(array('asd'), $t->testPregMatchSaveMatches("asd", "#asd#")); }