コード例 #1
0
ファイル: PregmatchTest.php プロジェクト: phalcon/zephir
 /**
  * @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')));
 }
コード例 #2
0
ファイル: PregmatchTest.php プロジェクト: NumbDai/zephir
 /**
  * @link https://github.com/phalcon/zephir/issues/287
  */
 public function testCollectMatches()
 {
     $t = new Pregmatch();
     $this->assertSame(array('asd'), $t->testPregMatchSaveMatches("asd", "#asd#"));
 }