Changeset 6373
- Timestamp:
- 03/10/2017 05:02:10 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
.travis.yml (modified) (3 diffs)
-
tests/phpunit/testcases/common/formatting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r6351 r6373 14 14 # PHP version used in first build configuration. 15 15 php: 16 - 7.117 - 7.018 - 5.619 - 5.520 - 5.421 - 5.322 - 5.216 - 7.1 17 - 7.0 18 - 5.6 19 - 5.5 20 - 5.4 21 - 5.3 22 - 5.2 23 23 24 24 # WordPress comes from the Git mirror, where 'master' mirrors svn 'trunk' and 25 25 # x.y mirrors the latest from the x.y branch 26 26 env: 27 - WP_VERSION=master28 - WP_VERSION=4.727 - WP_VERSION=master 28 - WP_VERSION=4.7 29 29 30 30 # Build matrix options … … 75 75 # setup NodeJS version using NVM 76 76 - node --version 77 - nvm install 477 - nvm install 6 78 78 - node --version 79 79 - npm install -g grunt-cli … … 81 81 - phpenv versions 82 82 - mysql --version 83 - php --version 84 - php -m 85 - phpunit --version 86 - curl --version 87 - grunt --version 88 - git --version 89 - svn --version 83 90 84 91 # before_script: Failures in this section will result in build status 'failed' 85 92 before_script: 86 93 - stable='^[0-9\.]+$'; if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then phpenv config-rm xdebug.ini; fi 94 - export PATH="$HOME/.composer/vendor/bin:$PATH" 95 - | 96 if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then 97 composer global require "phpunit/phpunit=5.7.*" 98 elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then 99 composer global require "phpunit/phpunit=4.8.*" 100 fi 87 101 - npm install 88 102 - grunt build -
trunk/tests/phpunit/testcases/common/formatting.php
r6347 r6373 135 135 $this->assertEquals( $at_name_comma_final, bbp_make_clickable( $at_name_comma ) ); 136 136 137 // Don "t link non-existent users137 // Don't link non-existent users 138 138 $text = "Don't link @non @existent @users"; 139 139 $this->assertSame( $text, bbp_make_clickable( $text ) ); … … 174 174 175 175 // Multiples 176 $at_name_in_mailto = sprintf( "Send messages to @%s, @%s.", $ link_1, $link_2 );176 $at_name_in_mailto = sprintf( "Send messages to @%s, @%s.", $name_1, $name_2 ); 177 177 $at_name_in_mailto_final = sprintf( "Send messages to @%s, @%s.", $link_1, $link_2 ); 178 178 $this->assertEquals( $at_name_in_mailto_final, bbp_make_clickable( $at_name_in_mailto ) ); 179 180 // Two names separated by `&` 181 $at_names_inbetween_ampersand = sprintf( "Oh hi @%s & @%s.", $name_1, $name_2 ); 182 $at_names_inbetween_ampersand_final = sprintf( "Oh hi @%s & @%s.", $link_1, $link_2 ); 183 $this->assertEquals( $at_names_inbetween_ampersand_final, bbp_make_clickable( $at_names_inbetween_ampersand ) ); 184 185 // Two names separated by `and` 186 $at_names_inbetween_and = sprintf( "Oh hi @%s and @%s.", $name_1, $name_2 ); 187 $at_names_inbetween_and_final = sprintf( "Oh hi @%s and @%s.", $link_1, $link_2 ); 188 $this->assertEquals( $at_names_inbetween_and_final, bbp_make_clickable( $at_names_inbetween_and ) ); 179 189 180 190 remove_filter( 'bbp_make_mentions_clickable_classes', '__return_empty_array' ); … … 213 223 214 224 // Multiples 215 $at_name_in_mailto = sprintf( "Send messages to @%s, @non1, @%s, @non2.", $ link_1, $link_2 );225 $at_name_in_mailto = sprintf( "Send messages to @%s, @non1, @%s, @non2.", $name_1, $name_2 ); 216 226 $at_name_in_mailto_final = sprintf( "Send messages to @%s, @non1, @%s, @non2.", $link_1, $link_2 ); 217 227 $this->assertEquals( $at_name_in_mailto_final, bbp_make_clickable( $at_name_in_mailto ) );
Note: See TracChangeset
for help on using the changeset viewer.