[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ManiphestCustomFieldStatusParserTestCase 4 extends PhabricatorTestCase { 5 6 public function testParser() { 7 $map = array( 8 'quack quack quack' => array(), 9 'T123' => array(), 10 'Fixes T123' => array( 11 array( 12 'match' => 'Fixes T123', 13 'prefix' => 'Fixes', 14 'infix' => '', 15 'monograms' => array('T123'), 16 'suffix' => '', 17 'offset' => 0, 18 ), 19 ), 20 'Fixes T123, T124, and also some other bugs.' => array( 21 array( 22 'match' => 'Fixes T123, T124, ', 23 'prefix' => 'Fixes', 24 'infix' => '', 25 'monograms' => array('T123', 'T124'), 26 'suffix' => '', 27 'offset' => 0, 28 ), 29 ), 30 'Closes T1 as wontfix' => array( 31 array( 32 'match' => 'Closes T1 as wontfix', 33 'prefix' => 'Closes', 34 'infix' => '', 35 'monograms' => array('T1'), 36 'suffix' => 'as wontfix', 37 'offset' => 0, 38 ), 39 ), 40 'Fixes task T9' => array( 41 array( 42 'match' => 'Fixes task T9', 43 'prefix' => 'Fixes', 44 'infix' => 'task', 45 'monograms' => array('T9'), 46 'suffix' => '', 47 'offset' => 0, 48 ), 49 ), 50 'Fixes t2apps' => array(), 51 'fixes a bug' => array(), 52 'Prefixes T2' => array(), 53 ); 54 55 foreach ($map as $input => $expect) { 56 $parser = new ManiphestCustomFieldStatusParser(); 57 $output = $parser->parseCorpus($input); 58 59 $this->assertEqual($expect, $output, $input); 60 } 61 } 62 63 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |