diff --git a/_test/locallink_conversion.test.php b/_test/locallink_conversion.test.php index e4c95a3..f3c97e6 100644 --- a/_test/locallink_conversion.test.php +++ b/_test/locallink_conversion.test.php @@ -31,12 +31,12 @@ public function setUp() : void public function testLocalConverted() { $html = p_wiki_xhtml('test:includefirst'); - $this->assertContains('href="'.wl('included').'#jump"', $html); - $this->assertNotContains('href="#jump"', $html); + $this->assertStringContainsString('href="'.wl('included').'#jump"', $html); + $this->assertStringNotContainsString('href="#jump"', $html); } public function testLocalExistsIfIncluded() { $html = p_wiki_xhtml('test:includefull'); - $this->assertContains('href="#jump"', $html); + $this->assertStringContainsString('href="#jump"', $html); } } diff --git a/_test/media_linktitle_conversion.test.php b/_test/media_linktitle_conversion.test.php index ea7787f..19fbbb9 100644 --- a/_test/media_linktitle_conversion.test.php +++ b/_test/media_linktitle_conversion.test.php @@ -34,21 +34,21 @@ public function setUp() : void public function testInternalLinkTitleConversion() { $html = p_wiki_xhtml('test:include'); - $this->assertContains('src="'.ml('wiki:dokuwiki.png').'"', $html); + $this->assertStringContainsString('src="'.ml('wiki:dokuwiki.png').'"', $html); } public function testLocalLinkTitleConversion() { $html = p_wiki_xhtml('test:include'); - $this->assertContains('src="'.ml('wiki:dokuwiki.png', array('w' => '200')).'"', $html); + $this->assertStringContainsString('src="'.ml('wiki:dokuwiki.png', array('w' => '200')).'"', $html); } public function testInterWikiLinkTitleConversion() { $html = p_wiki_xhtml('test:include'); - $this->assertContains('src="'.ml('wiki:dokuwiki.png', array('w' => '300')).'"', $html); + $this->assertStringContainsString('src="'.ml('wiki:dokuwiki.png', array('w' => '300')).'"', $html); } public function testExternalMediaNotConverted() { $html = p_wiki_xhtml('test:include'); - $this->assertContains('src="'.ml('https://www.dokuwiki.org/lib/tpl/dokuwiki/images/logo.png').'"', $html); + $this->assertStringContainsString('src="'.ml('https://www.dokuwiki.org/lib/tpl/dokuwiki/images/logo.png').'"', $html); } }