Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/EmailNotifications/vendor/html2text/html2text/test/SearchReplaceTest.php
Ðазад
<?php namespace Html2Text; use PHPUnit\Framework\TestCase; class SearchReplaceTest extends TestCase { public function searchReplaceDataProvider() { return array( 'Bold' => array( 'html' => 'Hello, "<b>world</b>"!', 'expected' => 'Hello, "WORLD"!', ), 'Strong' => array( 'html' => 'Hello, "<strong>world</strong>"!', 'expected' => 'Hello, "WORLD"!', ), 'Italic' => array( 'html' => 'Hello, "<i>world</i>"!', 'expected' => 'Hello, "_world_"!', ), 'Header' => array( 'html' => '<h1>Hello, world!</h1>', 'expected' => "HELLO, WORLD!\n\n", ), 'Table Header' => array( 'html' => '<th>Hello, World!</th>', 'expected' => "\t\tHELLO, WORLD!\n", ), 'Apostrophe' => array( 'html' => 'L'incubateur', 'expected' => 'L\'incubateur' ), ); } /** * @dataProvider searchReplaceDataProvider */ public function testSearchReplace($html, $expected) { $html = new Html2Text($html); $this->assertEquals($expected, $html->getText()); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка