About 12 results: "php preg_match_all repo:theodo/symfony1.0-backports"
Page 1 of 1
Filter Results
Sources
Languages
Filter Results
Try Search On
DateFormHelperTest.php in symfony1.0-backports https://github.com/theodo/symfony1.0-backports.git | 226 lines | PHP
  1. // options
  2. $t->is(preg_match_all('/<option /', select_year_tag('year', 2006, array('year_start' => 2005, 'year_end' => 2007)), $matches), 3, 'select_year_tag() takes a "year_start" and a "year_end" options');
  3. $t->like(select_second_tag('second', null, array(), array('id' => 'foo')), '<select name="second" id="foo">', 'select_second_tag() takes an array of attribute options as its fourth argument');
  4. $t->is(preg_match_all("/<option value=\"/", select_second_tag('second', null, array('second_step' => 10)), $matches), 6, 'select_second_tag() can take an "second_step" option');
  5. $t->like(select_minute_tag('minute', null, array(), array('id' => 'foo')), '<select name="minute" id="foo">', 'select_minute_tag() takes an array of attribute options as its fourth argument');
  6. $t->is(preg_match_all("/<option value=\"/", select_minute_tag('minute', null, array('minute_step' => 10)), $matches), 6, 'select_minute_tag() can take an "minute_step" option');
  7. $t->like(select_hour_tag('hour', null, array(), array('id' => 'foo')), '<select name="hour" id="foo">', 'select_hour_tag() takes an array of attribute options as its fourth argument');
  8. $t->is(preg_match_all("/<option value=\"/", select_hour_tag('hour'), $matches), 24, 'select_hour_tag() can take an "12hour_time" option');
  9. $t->is(preg_match_all("/<option value=\"/", select_hour_tag('hour', null, array('12hour_time' => true)), $matches), 12, 'select_hour_tag() can take an "12hour_time" option');
  10. 
                        
  11. $t->like(select_number_tag('number', null, array(), array('id' => 'foo')), '<select name="number" id="foo">', 'select_number_tag() takes an array of attribute options as its fourth argument');
  12. $t->is(preg_match_all('/<option/', select_number_tag('number', 3, array('increment' => 4)), $matches), 4, 'select_number_tag() can take an "increment" option');
  13. }
  14. $t->is(preg_match_all('/<option/', select_number_tag('number', 40, array('start' => 38, 'end' => 40)), $matches), 3, 'select_number_tag() can take a "start" and "end" options');





sfWebController.class.php in symfony1.0-backports https://github.com/theodo/symfony1.0-backports.git | 228 lines | PHP
  1.     {
  2.       $matched = preg_match_all('/

PO.php in symfony1.0-backports https://github.com/theodo/symfony1.0-backports.git | 143 lines | PHP
  1.         // match all msgid/msgstr entries
  2.         $matched = preg_match_all(



sfToolkit.class.php in symfony1.0-backports https://github.com/theodo/symfony1.0-backports.git | 581 lines | PHP
  1.   {
  2.     preg_match_all('/



Back to Top