From 08bd5af87690a2bf852b09f76a82c3c8be807b01 Mon Sep 17 00:00:00 2001 From: Michael Diodone Date: Mon, 4 Nov 2019 22:49:19 +0100 Subject: [PATCH] Set absolute URL to image To make it work within (nested) namespaces as well --- .travis.yml | 16 ++++++++++------ _test/syntax.test.php | 4 ++-- syntax.php | 6 ++++-- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index f6c14a6..0c1a0a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,22 +2,26 @@ language: php matrix: include: + - php: "7.3" + env: DOKUWIKI=master + - php: "7.3" + env: DOKUWIKI=release_stable_2018-04-22b - php: "7.2" env: DOKUWIKI=master - php: "7.2" - env: DOKUWIKI=release_stable_2018-04-22a + env: DOKUWIKI=release_stable_2018-04-22b - php: "7.1" env: DOKUWIKI=master - php: "7.1" - env: DOKUWIKI=release_stable_2018-04-22a + env: DOKUWIKI=release_stable_2018-04-22b - php: "7.0" env: DOKUWIKI=master - php: "7.0" - env: DOKUWIKI=release_stable_2018-04-22a + env: DOKUWIKI=release_stable_2018-04-22b - php: "5.6" env: DOKUWIKI=master - php: "5.6" - env: DOKUWIKI=release_stable_2018-04-22a + env: DOKUWIKI=release_stable_2018-04-22b - php: "5.6" env: DOKUWIKI=release_stable_2017-02-19e - php: "5.6" @@ -27,6 +31,6 @@ matrix: before_install: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh install: sh travis.sh -script: +script: - cd _test - - phpunit --group plugin_textrotate + - ./phpunit.phar --stderr --group plugin_textrotate diff --git a/_test/syntax.test.php b/_test/syntax.test.php index dc07c13..64c1e9a 100644 --- a/_test/syntax.test.php +++ b/_test/syntax.test.php @@ -16,8 +16,8 @@ public function setup() { public function test_basic_syntax() { $xhtml = p_wiki_xhtml('test:plugin_textrotate'); - - $this->assertContains('_xmlEntities($opt)." - - $renderer->doc .="adsf"; + + $renderer->doc .=<< +TAG; } //$renderer->doc .=""; //$renderer->doc .="
";