Index: trunk/phase3/tests/phpunit/includes/normal/CleanUpTest.php |
— | — | @@ -140,8 +140,8 @@ |
141 | 141 | * @todo document |
142 | 142 | */ |
143 | 143 | function doTestDoubleBytes( $head, $tail ) { |
144 | | - for( $first = 0xc0; $first < 0x100; $first++ ) { |
145 | | - for( $second = 0x80; $second < 0x100; $second++ ) { |
| 144 | + for( $first = 0xc0; $first < 0x100; $first+=2 ) { |
| 145 | + for( $second = 0x80; $second < 0x100; $second+=2 ) { |
146 | 146 | $char = $head . chr( $first ) . chr( $second ) . $tail; |
147 | 147 | $clean = UtfNormal::cleanUp( $char ); |
148 | 148 | $x = sprintf( "%02X,%02X", $first, $second ); |
— | — | @@ -184,8 +184,8 @@ |
185 | 185 | |
186 | 186 | /** @todo document */ |
187 | 187 | function doTestTripleBytes( $head, $tail ) { |
188 | | - for( $first = 0xc0; $first < 0x100; $first++ ) { |
189 | | - for( $second = 0x80; $second < 0x100; $second++ ) { |
| 188 | + for( $first = 0xc0; $first < 0x100; $first+=2 ) { |
| 189 | + for( $second = 0x80; $second < 0x100; $second+=2 ) { |
190 | 190 | #for( $third = 0x80; $third < 0x100; $third++ ) { |
191 | 191 | for( $third = 0x80; $third < 0x81; $third++ ) { |
192 | 192 | $char = $head . chr( $first ) . chr( $second ) . chr( $third ) . $tail; |