Changeset 42343 for trunk/tests/phpunit/tests/post/output.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/output.php
r38679 r42343 23 23 function _shortcode_dumptag( $atts ) { 24 24 $out = ''; 25 foreach ( $atts as $k=>$v)25 foreach ( $atts as $k => $v ) { 26 26 $out .= "$k = $v\n"; 27 } 27 28 return $out; 28 29 } 29 30 30 31 function _shortcode_paragraph( $atts, $content ) { 31 extract(shortcode_atts(array( 32 'class' => 'graf', 33 ), $atts)); 32 extract( 33 shortcode_atts( 34 array( 35 'class' => 'graf', 36 ), $atts 37 ) 38 ); 34 39 return "<p class='$class'>$content</p>\n"; 35 40 } … … 68 73 EOF; 69 74 70 $expected = <<<EOF75 $expected = <<<EOF 71 76 foo = bar 72 77 baz = 123
Note: See TracChangeset
for help on using the changeset viewer.