Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'stable' into old-stable
- Loading branch information
Showing
544 changed files
with
58,724 additions
and
52,022 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,51 @@ | ||
language: php | ||
sudo: false | ||
php: | ||
- "7.1" | ||
- "7.0" | ||
- "5.6" | ||
- "5.5" | ||
- "5.4" | ||
- "5.3" | ||
- "hhvm" | ||
|
||
env: | ||
- DISABLE_FUNCTIONS= | ||
- DISABLE_FUNCTIONS="gzopen" | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: hhvm | ||
sudo: true | ||
dist: trusty | ||
group: edge # until the next update | ||
addons: | ||
apt: | ||
packages: | ||
- mysql-server-5.6 | ||
- mysql-client-core-5.6 | ||
- mysql-client-5.6 | ||
services: | ||
- mysql | ||
- postgresql | ||
env: DISABLE_FUNCTIONS= | ||
allow_failures: | ||
- php: "hhvm" | ||
exclude: | ||
- php: "hhvm" | ||
env: DISABLE_FUNCTIONS="gzopen" | ||
notifications: | ||
irc: | ||
channels: | ||
- "chat.freenode.net#dokuwiki" | ||
on_success: change | ||
on_failure: change | ||
services: | ||
- "mysql" | ||
- "postgresql" | ||
install: | ||
- wget -O ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit.phar | ||
- chmod 755 ~/.phpenv/versions/hhvm/bin/phpunit | ||
before_script: | ||
- echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
# Disable the HHVM JIT for faster Unit Testing | ||
- if [[ $TRAVIS_PHP_VERSION = hhv* ]]; then echo 'hhvm.jit = 0' >> /etc/hhvm/php.ini; fi | ||
- if [[ $TRAVIS_PHP_VERSION != hhv* ]]; then test -z "$DISABLE_FUNCTIONS" || echo "disable_functions=$DISABLE_FUNCTIONS" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi | ||
- cp _test/mysql.conf.php.dist _test/mysql.conf.php | ||
- cp _test/pgsql.conf.php.dist _test/pgsql.conf.php | ||
script: cd _test && phpunit --verbose --stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2016-06-26e "Elenor of Tsort" | ||
2017-02-19e "Frusterick Manners" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
class common_embedSVG_test extends DokuWikiTest { | ||
|
||
/** | ||
* embed should succeed with a cleaned up result | ||
*/ | ||
function test_success() { | ||
$file = mediaFN('wiki:test.svg'); | ||
$clean = | ||
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" '. | ||
'width="64" height="64" viewBox="0 0 64 64"><path d="M64 20l-32-16-32 16 32 16 32-16zM32 '. | ||
'9.311l21.379 10.689-21.379 10.689-21.379-10.689 21.379-10.689zM57.59 28.795l6.41 3.205-32 16-32-16 '. | ||
'6.41-3.205 25.59 12.795zM57.59 40.795l6.41 3.205-32 16-32-16 6.41-3.205 25.59 12.795z" '. | ||
'fill="#000000"></path></svg>'; | ||
|
||
$this->assertEquals($clean, inlineSVG($file)); | ||
} | ||
|
||
/** | ||
* embed should fail because of the file size limit | ||
*/ | ||
function test_fail() { | ||
$file = mediaFN('wiki:test.svg'); | ||
$this->assertFalse(inlineSVG($file, 100)); | ||
} | ||
|
||
} |
Oops, something went wrong.