@@ -9,82 +9,82 @@ |
||
| 9 | 9 | |
| 10 | 10 | class EntitesHtmlTest extends TestCase |
| 11 | 11 | { |
| 12 | - public static function setUpBeforeClass(): void { |
|
| 13 | - find_in_path('inc/filtres.php', '', true); |
|
| 14 | - } |
|
| 12 | + public static function setUpBeforeClass(): void { |
|
| 13 | + find_in_path('inc/filtres.php', '', true); |
|
| 14 | + } |
|
| 15 | 15 | |
| 16 | - #[DataProvider('providerEntitesHtml')] |
|
| 17 | - public function testEntitesHtml($expected, ...$args): void { |
|
| 18 | - $actual = entites_html(...$args); |
|
| 19 | - $this->assertSame($expected, $actual); |
|
| 20 | - } |
|
| 16 | + #[DataProvider('providerEntitesHtml')] |
|
| 17 | + public function testEntitesHtml($expected, ...$args): void { |
|
| 18 | + $actual = entites_html(...$args); |
|
| 19 | + $this->assertSame($expected, $actual); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - public static function providerEntitesHtml(): array { |
|
| 23 | - return [ |
|
| 24 | - 'empty' => [ |
|
| 25 | - 'expected' => '', |
|
| 26 | - 'texte' => '', |
|
| 27 | - 'tout' => false, |
|
| 28 | - ], |
|
| 29 | - 'zero' => [ |
|
| 30 | - 'expected' => '0', |
|
| 31 | - 'texte' => '0', |
|
| 32 | - 'tout' => false, |
|
| 33 | - ], |
|
| 34 | - 'liens' => [ |
|
| 35 | - 'expected' => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 36 | - 'texte' =>'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 37 | - 'tout' => false, |
|
| 38 | - ], |
|
| 39 | - 'entites_echappees' => [ |
|
| 40 | - 'expected' => 'Un texte avec des entit&eacute;s echap&eacute; &amp;&lt;&gt;&quot;', |
|
| 41 | - 'texte' => 'Un texte avec des entit&eacute;s echap&eacute; &amp;&lt;&gt;&quot;', |
|
| 42 | - 'tout' => false, |
|
| 43 | - ], |
|
| 44 | - 'entites_numeriques' => [ |
|
| 45 | - 'expected' => 'Un texte avec des entités numériques &#38;&#60;&#62;&quot;', |
|
| 46 | - 'texte' => 'Un texte avec des entités numériques &<>"', |
|
| 47 | - 'tout' => false, |
|
| 48 | - ], |
|
| 49 | - 'entites_numeriques_echappees' => [ |
|
| 50 | - 'expected' => 'Un texte avec des entit&#233;s num&#233;riques echap&#233;es &#38;&#60;&#62;&quot;', |
|
| 51 | - 'texte' => 'Un texte avec des entit&#233;s num&#233;riques echap&#233;es &#38;&#60;&#62;&quot;', |
|
| 52 | - 'tout' => false, |
|
| 53 | - ], |
|
| 54 | - 'sans_entites' => [ |
|
| 55 | - 'expected' => 'Un texte sans entites &<>"'', |
|
| 56 | - 'texte' => 'Un texte sans entites &<>"\'', |
|
| 57 | - 'tout' => false, |
|
| 58 | - ], |
|
| 59 | - 'code' => [ |
|
| 60 | - 'expected' => '<code>&#233;</code>é', |
|
| 61 | - 'texte' => '<code>é</code>é', |
|
| 62 | - ], |
|
| 63 | - 'raccourcis_spip' => [ |
|
| 64 | - 'expected' => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 65 | - 'texte' => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 66 | - 'tout' => false, |
|
| 67 | - ], |
|
| 68 | - 'modele_inexistant' => [ |
|
| 69 | - 'expected' => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 70 | - 'texte' => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 71 | - 'tout' => false, |
|
| 72 | - ], |
|
| 73 | - 'multiligne' => [ |
|
| 74 | - 'expected' => <<<TEXT |
|
| 22 | + public static function providerEntitesHtml(): array { |
|
| 23 | + return [ |
|
| 24 | + 'empty' => [ |
|
| 25 | + 'expected' => '', |
|
| 26 | + 'texte' => '', |
|
| 27 | + 'tout' => false, |
|
| 28 | + ], |
|
| 29 | + 'zero' => [ |
|
| 30 | + 'expected' => '0', |
|
| 31 | + 'texte' => '0', |
|
| 32 | + 'tout' => false, |
|
| 33 | + ], |
|
| 34 | + 'liens' => [ |
|
| 35 | + 'expected' => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 36 | + 'texte' =>'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 37 | + 'tout' => false, |
|
| 38 | + ], |
|
| 39 | + 'entites_echappees' => [ |
|
| 40 | + 'expected' => 'Un texte avec des entit&eacute;s echap&eacute; &amp;&lt;&gt;&quot;', |
|
| 41 | + 'texte' => 'Un texte avec des entit&eacute;s echap&eacute; &amp;&lt;&gt;&quot;', |
|
| 42 | + 'tout' => false, |
|
| 43 | + ], |
|
| 44 | + 'entites_numeriques' => [ |
|
| 45 | + 'expected' => 'Un texte avec des entités numériques &#38;&#60;&#62;&quot;', |
|
| 46 | + 'texte' => 'Un texte avec des entités numériques &<>"', |
|
| 47 | + 'tout' => false, |
|
| 48 | + ], |
|
| 49 | + 'entites_numeriques_echappees' => [ |
|
| 50 | + 'expected' => 'Un texte avec des entit&#233;s num&#233;riques echap&#233;es &#38;&#60;&#62;&quot;', |
|
| 51 | + 'texte' => 'Un texte avec des entit&#233;s num&#233;riques echap&#233;es &#38;&#60;&#62;&quot;', |
|
| 52 | + 'tout' => false, |
|
| 53 | + ], |
|
| 54 | + 'sans_entites' => [ |
|
| 55 | + 'expected' => 'Un texte sans entites &<>"'', |
|
| 56 | + 'texte' => 'Un texte sans entites &<>"\'', |
|
| 57 | + 'tout' => false, |
|
| 58 | + ], |
|
| 59 | + 'code' => [ |
|
| 60 | + 'expected' => '<code>&#233;</code>é', |
|
| 61 | + 'texte' => '<code>é</code>é', |
|
| 62 | + ], |
|
| 63 | + 'raccourcis_spip' => [ |
|
| 64 | + 'expected' => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 65 | + 'texte' => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 66 | + 'tout' => false, |
|
| 67 | + ], |
|
| 68 | + 'modele_inexistant' => [ |
|
| 69 | + 'expected' => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 70 | + 'texte' => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 71 | + 'tout' => false, |
|
| 72 | + ], |
|
| 73 | + 'multiligne' => [ |
|
| 74 | + 'expected' => <<<TEXT |
|
| 75 | 75 | Un texte avec des retour |
| 76 | 76 | a la ligne et meme des |
| 77 | 77 | |
| 78 | 78 | paragraphes |
| 79 | 79 | TEXT, |
| 80 | - 'texte' => <<<TEXT |
|
| 80 | + 'texte' => <<<TEXT |
|
| 81 | 81 | Un texte avec des retour |
| 82 | 82 | a la ligne et meme des |
| 83 | 83 | |
| 84 | 84 | paragraphes |
| 85 | 85 | TEXT, |
| 86 | - 'tout' => false, |
|
| 87 | - ], |
|
| 88 | - ]; |
|
| 89 | - } |
|
| 86 | + 'tout' => false, |
|
| 87 | + ], |
|
| 88 | + ]; |
|
| 89 | + } |
|
| 90 | 90 | } |
@@ -13,38 +13,38 @@ |
||
| 13 | 13 | |
| 14 | 14 | class CommuterClassTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('./inc/filtres.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('./inc/filtres.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresCommuterClass')] |
|
| 21 | - public function testFiltresCommuterClass($expected, ...$args): void { |
|
| 22 | - $actual = commuter_class(...$args); |
|
| 23 | - $this->assertSame($expected, $actual); |
|
| 24 | - } |
|
| 20 | + #[DataProvider('providerFiltresCommuterClass')] |
|
| 21 | + public function testFiltresCommuterClass($expected, ...$args): void { |
|
| 22 | + $actual = commuter_class(...$args); |
|
| 23 | + $this->assertSame($expected, $actual); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public static function providerFiltresCommuterClass(): array { |
|
| 27 | - return [ |
|
| 28 | - 0 => [ |
|
| 29 | - 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem'>toto</span>", |
|
| 30 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 31 | - 2 => 'maclasse', |
|
| 32 | - ], |
|
| 33 | - 1 => [ |
|
| 34 | - 0 => "<span class='maclasse maclasse-prefixe suffixe-maclasse maclasse--bem autreclass'>toto</span>", |
|
| 35 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 36 | - 2 => 'autreclass', |
|
| 37 | - ], |
|
| 38 | - 2 => [ |
|
| 39 | - 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem maclasse1 maclasse2'>toto</span>", |
|
| 40 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 41 | - 2 => 'maclasse1 maclasse maclasse2', |
|
| 42 | - ], |
|
| 43 | - 3 => [ |
|
| 44 | - 0 => "<span class='maclasse maclasse--bem <span class="maclasse maclasse--bem">toto</span>'>toto</span>", |
|
| 45 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 46 | - 2 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 47 | - ], |
|
| 48 | - ]; |
|
| 49 | - } |
|
| 26 | + public static function providerFiltresCommuterClass(): array { |
|
| 27 | + return [ |
|
| 28 | + 0 => [ |
|
| 29 | + 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem'>toto</span>", |
|
| 30 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 31 | + 2 => 'maclasse', |
|
| 32 | + ], |
|
| 33 | + 1 => [ |
|
| 34 | + 0 => "<span class='maclasse maclasse-prefixe suffixe-maclasse maclasse--bem autreclass'>toto</span>", |
|
| 35 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 36 | + 2 => 'autreclass', |
|
| 37 | + ], |
|
| 38 | + 2 => [ |
|
| 39 | + 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem maclasse1 maclasse2'>toto</span>", |
|
| 40 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 41 | + 2 => 'maclasse1 maclasse maclasse2', |
|
| 42 | + ], |
|
| 43 | + 3 => [ |
|
| 44 | + 0 => "<span class='maclasse maclasse--bem <span class="maclasse maclasse--bem">toto</span>'>toto</span>", |
|
| 45 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 46 | + 2 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 47 | + ], |
|
| 48 | + ]; |
|
| 49 | + } |
|
| 50 | 50 | } |
@@ -13,46 +13,46 @@ |
||
| 13 | 13 | |
| 14 | 14 | class TexteBackendqTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('inc/filtres.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('inc/filtres.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresTexteBackendq')] |
|
| 21 | - public function testFiltresTexteBackendq($expected, ...$args): void { |
|
| 22 | - $actual = texte_backendq(...$args); |
|
| 23 | - $this->assertSame($expected, $actual); |
|
| 24 | - } |
|
| 20 | + #[DataProvider('providerFiltresTexteBackendq')] |
|
| 21 | + public function testFiltresTexteBackendq($expected, ...$args): void { |
|
| 22 | + $actual = texte_backendq(...$args); |
|
| 23 | + $this->assertSame($expected, $actual); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public static function providerFiltresTexteBackendq(): array { |
|
| 27 | - return [ |
|
| 28 | - 0 => [ |
|
| 29 | - 0 => '', |
|
| 30 | - 1 => '', |
|
| 31 | - ], |
|
| 32 | - 1 => [ |
|
| 33 | - 0 => '0', |
|
| 34 | - 1 => '0', |
|
| 35 | - ], |
|
| 36 | - 2 => [ |
|
| 37 | - 0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 38 | - 1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 39 | - ], |
|
| 40 | - 3 => [ |
|
| 41 | - 0 => 'Un texte avec des entités &<>"', |
|
| 42 | - 1 => 'Un texte avec des entités &<>"', |
|
| 43 | - ], |
|
| 44 | - 4 => [ |
|
| 45 | - 0 => 'Un texte sans entites &<>"\\\'', |
|
| 46 | - 1 => 'Un texte sans entites &<>"\'', |
|
| 47 | - ], |
|
| 48 | - 5 => [ |
|
| 49 | - 0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 50 | - 1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 51 | - ], |
|
| 52 | - 6 => [ |
|
| 53 | - 0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 54 | - 1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 55 | - ], |
|
| 56 | - ]; |
|
| 57 | - } |
|
| 26 | + public static function providerFiltresTexteBackendq(): array { |
|
| 27 | + return [ |
|
| 28 | + 0 => [ |
|
| 29 | + 0 => '', |
|
| 30 | + 1 => '', |
|
| 31 | + ], |
|
| 32 | + 1 => [ |
|
| 33 | + 0 => '0', |
|
| 34 | + 1 => '0', |
|
| 35 | + ], |
|
| 36 | + 2 => [ |
|
| 37 | + 0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 38 | + 1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net', |
|
| 39 | + ], |
|
| 40 | + 3 => [ |
|
| 41 | + 0 => 'Un texte avec des entités &<>"', |
|
| 42 | + 1 => 'Un texte avec des entités &<>"', |
|
| 43 | + ], |
|
| 44 | + 4 => [ |
|
| 45 | + 0 => 'Un texte sans entites &<>"\\\'', |
|
| 46 | + 1 => 'Un texte sans entites &<>"\'', |
|
| 47 | + ], |
|
| 48 | + 5 => [ |
|
| 49 | + 0 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 50 | + 1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>', |
|
| 51 | + ], |
|
| 52 | + 6 => [ |
|
| 53 | + 0 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 54 | + 1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>', |
|
| 55 | + ], |
|
| 56 | + ]; |
|
| 57 | + } |
|
| 58 | 58 | } |
@@ -13,59 +13,59 @@ |
||
| 13 | 13 | |
| 14 | 14 | class ProtocoleVerifierTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('./inc/filtres_mini.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('./inc/filtres_mini.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresMiniProtocoleVerifier')] |
|
| 21 | - public function testFiltresMiniProtocoleVerifier($expected, ...$args): void { |
|
| 22 | - $actual = protocole_verifier(...$args); |
|
| 23 | - $this->assertSame($expected, $actual); |
|
| 24 | - } |
|
| 20 | + #[DataProvider('providerFiltresMiniProtocoleVerifier')] |
|
| 21 | + public function testFiltresMiniProtocoleVerifier($expected, ...$args): void { |
|
| 22 | + $actual = protocole_verifier(...$args); |
|
| 23 | + $this->assertSame($expected, $actual); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public static function providerFiltresMiniProtocoleVerifier(): array { |
|
| 27 | - return [ |
|
| 28 | - 0 => [ |
|
| 29 | - 0 => true, |
|
| 30 | - 1 => 'http://www.spip.net', |
|
| 31 | - ], |
|
| 32 | - 1 => [ |
|
| 33 | - 0 => true, |
|
| 34 | - 1 => 'https://www.spip.net', |
|
| 35 | - ], |
|
| 36 | - 2 => [ |
|
| 37 | - 0 => false, |
|
| 38 | - 1 => 'ftp://www.spip.net', |
|
| 39 | - ], |
|
| 40 | - 3 => [ |
|
| 41 | - 0 => true, |
|
| 42 | - 1 => 'ftp://www.spip.net', |
|
| 43 | - 2 => [ |
|
| 44 | - 0 => 'http', |
|
| 45 | - 1 => 'https', |
|
| 46 | - 2 => 'ftp', |
|
| 47 | - ], |
|
| 48 | - ], |
|
| 49 | - 4 => [ |
|
| 50 | - 0 => false, |
|
| 51 | - 1 => '/etc/password', |
|
| 52 | - ], |
|
| 53 | - 5 => [ |
|
| 54 | - 0 => false, |
|
| 55 | - 1 => 'squelettes/img/recherche.png', |
|
| 56 | - ], |
|
| 57 | - 6 => [ |
|
| 58 | - 0 => true, |
|
| 59 | - 1 => 'HTTP://WWW.SPIP.NET', |
|
| 60 | - ], |
|
| 61 | - 7 => [ |
|
| 62 | - 0 => true, |
|
| 63 | - 1 => 'http://www.spip.net', |
|
| 64 | - 2 => [ |
|
| 65 | - 0 => 'HTTP', |
|
| 66 | - 1 => 'HTTPS', |
|
| 67 | - ], |
|
| 68 | - ], |
|
| 69 | - ]; |
|
| 70 | - } |
|
| 26 | + public static function providerFiltresMiniProtocoleVerifier(): array { |
|
| 27 | + return [ |
|
| 28 | + 0 => [ |
|
| 29 | + 0 => true, |
|
| 30 | + 1 => 'http://www.spip.net', |
|
| 31 | + ], |
|
| 32 | + 1 => [ |
|
| 33 | + 0 => true, |
|
| 34 | + 1 => 'https://www.spip.net', |
|
| 35 | + ], |
|
| 36 | + 2 => [ |
|
| 37 | + 0 => false, |
|
| 38 | + 1 => 'ftp://www.spip.net', |
|
| 39 | + ], |
|
| 40 | + 3 => [ |
|
| 41 | + 0 => true, |
|
| 42 | + 1 => 'ftp://www.spip.net', |
|
| 43 | + 2 => [ |
|
| 44 | + 0 => 'http', |
|
| 45 | + 1 => 'https', |
|
| 46 | + 2 => 'ftp', |
|
| 47 | + ], |
|
| 48 | + ], |
|
| 49 | + 4 => [ |
|
| 50 | + 0 => false, |
|
| 51 | + 1 => '/etc/password', |
|
| 52 | + ], |
|
| 53 | + 5 => [ |
|
| 54 | + 0 => false, |
|
| 55 | + 1 => 'squelettes/img/recherche.png', |
|
| 56 | + ], |
|
| 57 | + 6 => [ |
|
| 58 | + 0 => true, |
|
| 59 | + 1 => 'HTTP://WWW.SPIP.NET', |
|
| 60 | + ], |
|
| 61 | + 7 => [ |
|
| 62 | + 0 => true, |
|
| 63 | + 1 => 'http://www.spip.net', |
|
| 64 | + 2 => [ |
|
| 65 | + 0 => 'HTTP', |
|
| 66 | + 1 => 'HTTPS', |
|
| 67 | + ], |
|
| 68 | + ], |
|
| 69 | + ]; |
|
| 70 | + } |
|
| 71 | 71 | } |
@@ -13,38 +13,38 @@ |
||
| 13 | 13 | |
| 14 | 14 | class AjouterClassTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('./inc/filtres.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('./inc/filtres.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresAjouterClass')] |
|
| 21 | - public function testFiltresAjouterClass($expected, ...$args): void { |
|
| 22 | - $actual = ajouter_class(...$args); |
|
| 23 | - $this->assertSame($expected, $actual); |
|
| 24 | - } |
|
| 20 | + #[DataProvider('providerFiltresAjouterClass')] |
|
| 21 | + public function testFiltresAjouterClass($expected, ...$args): void { |
|
| 22 | + $actual = ajouter_class(...$args); |
|
| 23 | + $this->assertSame($expected, $actual); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public static function providerFiltresAjouterClass(): array { |
|
| 27 | - return [ |
|
| 28 | - 0 => [ |
|
| 29 | - 0 => "<span class='maclasse maclasse-prefixe suffixe-maclasse maclasse--bem autreclass'>toto</span>", |
|
| 30 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 31 | - 2 => 'autreclass', |
|
| 32 | - ], |
|
| 33 | - 1 => [ |
|
| 34 | - 0 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 35 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 36 | - 2 => 'maclasse', |
|
| 37 | - ], |
|
| 38 | - 2 => [ |
|
| 39 | - 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem maclasse'>toto</span>", |
|
| 40 | - 1 => '<span class="maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 41 | - 2 => 'maclasse', |
|
| 42 | - ], |
|
| 43 | - 3 => [ |
|
| 44 | - 0 => "<span class='maclasse maclasse-prefixe suffixe-maclasse maclasse--bem maclasse1 maclasse2'>toto</span>", |
|
| 45 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 46 | - 2 => 'maclasse1 maclasse maclasse2', |
|
| 47 | - ], |
|
| 48 | - ]; |
|
| 49 | - } |
|
| 26 | + public static function providerFiltresAjouterClass(): array { |
|
| 27 | + return [ |
|
| 28 | + 0 => [ |
|
| 29 | + 0 => "<span class='maclasse maclasse-prefixe suffixe-maclasse maclasse--bem autreclass'>toto</span>", |
|
| 30 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 31 | + 2 => 'autreclass', |
|
| 32 | + ], |
|
| 33 | + 1 => [ |
|
| 34 | + 0 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 35 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 36 | + 2 => 'maclasse', |
|
| 37 | + ], |
|
| 38 | + 2 => [ |
|
| 39 | + 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem maclasse'>toto</span>", |
|
| 40 | + 1 => '<span class="maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 41 | + 2 => 'maclasse', |
|
| 42 | + ], |
|
| 43 | + 3 => [ |
|
| 44 | + 0 => "<span class='maclasse maclasse-prefixe suffixe-maclasse maclasse--bem maclasse1 maclasse2'>toto</span>", |
|
| 45 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 46 | + 2 => 'maclasse1 maclasse maclasse2', |
|
| 47 | + ], |
|
| 48 | + ]; |
|
| 49 | + } |
|
| 50 | 50 | } |
@@ -13,34 +13,34 @@ |
||
| 13 | 13 | |
| 14 | 14 | class HauteurTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('inc/filtres.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('inc/filtres.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresHauteur')] |
|
| 21 | - public function testFiltresHauteur($expected, ...$args): void { |
|
| 22 | - $actual = hauteur(...$args); |
|
| 23 | - $this->assertSame($expected, $actual); |
|
| 24 | - } |
|
| 20 | + #[DataProvider('providerFiltresHauteur')] |
|
| 21 | + public function testFiltresHauteur($expected, ...$args): void { |
|
| 22 | + $actual = hauteur(...$args); |
|
| 23 | + $this->assertSame($expected, $actual); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public static function providerFiltresHauteur(): array { |
|
| 27 | - return [ |
|
| 28 | - 0 => [ |
|
| 29 | - 0 => 223, |
|
| 30 | - 1 => 'https://www.spip.net/IMG/logo/siteon0.png', |
|
| 31 | - ], |
|
| 32 | - 2 => [ |
|
| 33 | - 0 => 172, |
|
| 34 | - 1 => 'prive/images/logo-spip.png', |
|
| 35 | - ], |
|
| 36 | - 3 => [ |
|
| 37 | - 0 => 0, |
|
| 38 | - 1 => 'prive/aide_body.css', |
|
| 39 | - ], |
|
| 40 | - 4 => [ |
|
| 41 | - 0 => 16, |
|
| 42 | - 1 => 'prive/images/searching.gif', |
|
| 43 | - ], |
|
| 44 | - ]; |
|
| 45 | - } |
|
| 26 | + public static function providerFiltresHauteur(): array { |
|
| 27 | + return [ |
|
| 28 | + 0 => [ |
|
| 29 | + 0 => 223, |
|
| 30 | + 1 => 'https://www.spip.net/IMG/logo/siteon0.png', |
|
| 31 | + ], |
|
| 32 | + 2 => [ |
|
| 33 | + 0 => 172, |
|
| 34 | + 1 => 'prive/images/logo-spip.png', |
|
| 35 | + ], |
|
| 36 | + 3 => [ |
|
| 37 | + 0 => 0, |
|
| 38 | + 1 => 'prive/aide_body.css', |
|
| 39 | + ], |
|
| 40 | + 4 => [ |
|
| 41 | + 0 => 16, |
|
| 42 | + 1 => 'prive/images/searching.gif', |
|
| 43 | + ], |
|
| 44 | + ]; |
|
| 45 | + } |
|
| 46 | 46 | } |
@@ -13,46 +13,46 @@ |
||
| 13 | 13 | |
| 14 | 14 | class TailleImageTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('inc/filtres.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('inc/filtres.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresTailleImage')] |
|
| 21 | - public function testFiltresTailleImage($expected, ...$args): void { |
|
| 22 | - $actual = taille_image(...$args); |
|
| 23 | - $this->assertSame($expected, $actual); |
|
| 24 | - } |
|
| 20 | + #[DataProvider('providerFiltresTailleImage')] |
|
| 21 | + public function testFiltresTailleImage($expected, ...$args): void { |
|
| 22 | + $actual = taille_image(...$args); |
|
| 23 | + $this->assertSame($expected, $actual); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public static function providerFiltresTailleImage(): array { |
|
| 27 | - return [ |
|
| 28 | - 0 => [ |
|
| 29 | - 0 => [ |
|
| 30 | - 0 => 223, |
|
| 31 | - 1 => 300, |
|
| 32 | - ], |
|
| 33 | - 1 => 'https://www.spip.net/IMG/logo/siteon0.png', |
|
| 34 | - ], |
|
| 35 | - 2 => [ |
|
| 36 | - 0 => [ |
|
| 37 | - 0 => 172, |
|
| 38 | - 1 => 231, |
|
| 39 | - ], |
|
| 40 | - 1 => 'prive/images/logo-spip.png', |
|
| 41 | - ], |
|
| 42 | - 3 => [ |
|
| 43 | - 0 => [ |
|
| 44 | - 0 => 0, |
|
| 45 | - 1 => 0, |
|
| 46 | - ], |
|
| 47 | - 1 => 'prive/aide_body.css', |
|
| 48 | - ], |
|
| 49 | - 4 => [ |
|
| 50 | - 0 => [ |
|
| 51 | - 0 => 16, |
|
| 52 | - 1 => 16, |
|
| 53 | - ], |
|
| 54 | - 1 => 'prive/images/searching.gif', |
|
| 55 | - ], |
|
| 56 | - ]; |
|
| 57 | - } |
|
| 26 | + public static function providerFiltresTailleImage(): array { |
|
| 27 | + return [ |
|
| 28 | + 0 => [ |
|
| 29 | + 0 => [ |
|
| 30 | + 0 => 223, |
|
| 31 | + 1 => 300, |
|
| 32 | + ], |
|
| 33 | + 1 => 'https://www.spip.net/IMG/logo/siteon0.png', |
|
| 34 | + ], |
|
| 35 | + 2 => [ |
|
| 36 | + 0 => [ |
|
| 37 | + 0 => 172, |
|
| 38 | + 1 => 231, |
|
| 39 | + ], |
|
| 40 | + 1 => 'prive/images/logo-spip.png', |
|
| 41 | + ], |
|
| 42 | + 3 => [ |
|
| 43 | + 0 => [ |
|
| 44 | + 0 => 0, |
|
| 45 | + 1 => 0, |
|
| 46 | + ], |
|
| 47 | + 1 => 'prive/aide_body.css', |
|
| 48 | + ], |
|
| 49 | + 4 => [ |
|
| 50 | + 0 => [ |
|
| 51 | + 0 => 16, |
|
| 52 | + 1 => 16, |
|
| 53 | + ], |
|
| 54 | + 1 => 'prive/images/searching.gif', |
|
| 55 | + ], |
|
| 56 | + ]; |
|
| 57 | + } |
|
| 58 | 58 | } |
@@ -13,58 +13,58 @@ |
||
| 13 | 13 | |
| 14 | 14 | class SupprimerClassTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('./inc/filtres.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('./inc/filtres.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresSupprimerClass')] |
|
| 21 | - public function testFiltresSupprimerClass($expected, ...$args): void { |
|
| 22 | - $actual = supprimer_class(...$args); |
|
| 23 | - $this->assertSame($expected, $actual); |
|
| 24 | - } |
|
| 20 | + #[DataProvider('providerFiltresSupprimerClass')] |
|
| 21 | + public function testFiltresSupprimerClass($expected, ...$args): void { |
|
| 22 | + $actual = supprimer_class(...$args); |
|
| 23 | + $this->assertSame($expected, $actual); |
|
| 24 | + } |
|
| 25 | 25 | |
| 26 | - public static function providerFiltresSupprimerClass(): array { |
|
| 27 | - return [ |
|
| 28 | - 0 => [ |
|
| 29 | - 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem'>toto</span>", |
|
| 30 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 31 | - 2 => 'maclasse', |
|
| 32 | - ], |
|
| 33 | - 1 => [ |
|
| 34 | - 0 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 35 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 36 | - 2 => 'autreclass', |
|
| 37 | - ], |
|
| 38 | - 2 => [ |
|
| 39 | - 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem'>toto</span>", |
|
| 40 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 41 | - 2 => 'maclasse1 maclasse maclasse2', |
|
| 42 | - ], |
|
| 43 | - 3 => [ |
|
| 44 | - 0 => "<span class='maclasse suffixe-maclasse'>toto</span>", |
|
| 45 | - 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 46 | - 2 => 'maclasse-prefixe maclasse--bem', |
|
| 47 | - ], |
|
| 48 | - 4 => [ |
|
| 49 | - 0 => "<span class='maclasse-prefixe'>toto</span>", |
|
| 50 | - 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 51 | - 2 => 'maclasse', |
|
| 52 | - ], |
|
| 53 | - 5 => [ |
|
| 54 | - 0 => "<span class='maclasse'>toto</span>", |
|
| 55 | - 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 56 | - 2 => 'maclasse-prefixe', |
|
| 57 | - ], |
|
| 58 | - 6 => [ |
|
| 59 | - 0 => '<span>toto</span>', |
|
| 60 | - 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 61 | - 2 => 'maclasse maclasse-prefixe', |
|
| 62 | - ], |
|
| 63 | - 7 => [ |
|
| 64 | - 0 => '<span>toto</span>', |
|
| 65 | - 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 66 | - 2 => 'maclasse-prefixe maclasse', |
|
| 67 | - ], |
|
| 68 | - ]; |
|
| 69 | - } |
|
| 26 | + public static function providerFiltresSupprimerClass(): array { |
|
| 27 | + return [ |
|
| 28 | + 0 => [ |
|
| 29 | + 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem'>toto</span>", |
|
| 30 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 31 | + 2 => 'maclasse', |
|
| 32 | + ], |
|
| 33 | + 1 => [ |
|
| 34 | + 0 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 35 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 36 | + 2 => 'autreclass', |
|
| 37 | + ], |
|
| 38 | + 2 => [ |
|
| 39 | + 0 => "<span class='maclasse-prefixe suffixe-maclasse maclasse--bem'>toto</span>", |
|
| 40 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 41 | + 2 => 'maclasse1 maclasse maclasse2', |
|
| 42 | + ], |
|
| 43 | + 3 => [ |
|
| 44 | + 0 => "<span class='maclasse suffixe-maclasse'>toto</span>", |
|
| 45 | + 1 => '<span class="maclasse maclasse-prefixe suffixe-maclasse maclasse--bem">toto</span>', |
|
| 46 | + 2 => 'maclasse-prefixe maclasse--bem', |
|
| 47 | + ], |
|
| 48 | + 4 => [ |
|
| 49 | + 0 => "<span class='maclasse-prefixe'>toto</span>", |
|
| 50 | + 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 51 | + 2 => 'maclasse', |
|
| 52 | + ], |
|
| 53 | + 5 => [ |
|
| 54 | + 0 => "<span class='maclasse'>toto</span>", |
|
| 55 | + 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 56 | + 2 => 'maclasse-prefixe', |
|
| 57 | + ], |
|
| 58 | + 6 => [ |
|
| 59 | + 0 => '<span>toto</span>', |
|
| 60 | + 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 61 | + 2 => 'maclasse maclasse-prefixe', |
|
| 62 | + ], |
|
| 63 | + 7 => [ |
|
| 64 | + 0 => '<span>toto</span>', |
|
| 65 | + 1 => '<span class="maclasse maclasse-prefixe">toto</span>', |
|
| 66 | + 2 => 'maclasse-prefixe maclasse', |
|
| 67 | + ], |
|
| 68 | + ]; |
|
| 69 | + } |
|
| 70 | 70 | } |
@@ -13,221 +13,221 @@ |
||
| 13 | 13 | |
| 14 | 14 | class FiltreBaliseImgDistTest extends TestCase |
| 15 | 15 | { |
| 16 | - public static function setUpBeforeClass(): void { |
|
| 17 | - find_in_path('./inc/filtres.php', '', true); |
|
| 18 | - } |
|
| 16 | + public static function setUpBeforeClass(): void { |
|
| 17 | + find_in_path('./inc/filtres.php', '', true); |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - #[DataProvider('providerFiltresFiltreBaliseImgDist')] |
|
| 21 | - public function testFiltresFiltreBaliseImgDist($expected, ...$args): void { |
|
| 22 | - static $f = null; |
|
| 23 | - // chercher la fonction si elle n'existe pas |
|
| 24 | - if ($f === null && !function_exists($f = 'filtre_balise_img_dist')) { |
|
| 25 | - find_in_path('inc/filtres.php', '', true); |
|
| 26 | - $f = chercher_filtre($f); |
|
| 27 | - } |
|
| 28 | - $res = $f(...$args); |
|
| 29 | - $actual = preg_replace('#\\?\\d+#', '', $res); |
|
| 30 | - $this->assertSame($expected, $actual); |
|
| 31 | - } |
|
| 20 | + #[DataProvider('providerFiltresFiltreBaliseImgDist')] |
|
| 21 | + public function testFiltresFiltreBaliseImgDist($expected, ...$args): void { |
|
| 22 | + static $f = null; |
|
| 23 | + // chercher la fonction si elle n'existe pas |
|
| 24 | + if ($f === null && !function_exists($f = 'filtre_balise_img_dist')) { |
|
| 25 | + find_in_path('inc/filtres.php', '', true); |
|
| 26 | + $f = chercher_filtre($f); |
|
| 27 | + } |
|
| 28 | + $res = $f(...$args); |
|
| 29 | + $actual = preg_replace('#\\?\\d+#', '', $res); |
|
| 30 | + $this->assertSame($expected, $actual); |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - public static function providerFiltresFiltreBaliseImgDist(): array { |
|
| 34 | - return [ |
|
| 35 | - [ |
|
| 36 | - 0 => "<img src='https://www.spip.net/IMG/logo/siteon0.png' alt='' width='300' height='223' />", |
|
| 37 | - 1 => 'https://www.spip.net/IMG/logo/siteon0.png', |
|
| 38 | - ], |
|
| 39 | - [ |
|
| 40 | - 0 => "<img src='prive/images/logo-spip.png' alt='' width='231' height='172' />", |
|
| 41 | - 1 => 'prive/images/logo-spip.png', |
|
| 42 | - ], |
|
| 43 | - [ |
|
| 44 | - 0 => '', |
|
| 45 | - 1 => 'prive/aide_body.css', |
|
| 46 | - ], |
|
| 47 | - [ |
|
| 48 | - 0 => "<img src='prive/images/searching.gif' alt='' width='16' height='16' />", |
|
| 49 | - 1 => 'prive/images/searching.gif', |
|
| 50 | - ], |
|
| 51 | - [ |
|
| 52 | - 0 => "<img src='prive/images/searching.gif' alt='attendez' class='loading' width='16' height='16' />", |
|
| 53 | - 1 => 'prive/images/searching.gif', |
|
| 54 | - 2 => 'attendez', |
|
| 55 | - 3 => 'loading', |
|
| 56 | - ], |
|
| 57 | - [ |
|
| 58 | - 0 => "<img src='spip.png' alt='' width='60' height='40' />", |
|
| 59 | - 1 => 'spip.png', |
|
| 60 | - ], |
|
| 61 | - 1 => [ |
|
| 62 | - 0 => "<img src='spip.png' alt='This is SPIP' width='60' height='40' />", |
|
| 63 | - 1 => 'spip.png', |
|
| 64 | - 2 => 'This is SPIP', |
|
| 65 | - ], |
|
| 66 | - 2 => [ |
|
| 67 | - 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='60' height='40' />", |
|
| 68 | - 1 => 'spip.png', |
|
| 69 | - 2 => 'This is SPIP', |
|
| 70 | - 3 => 'spip_logo', |
|
| 71 | - ], |
|
| 72 | - [ |
|
| 73 | - 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='30' height='20' />", |
|
| 74 | - 1 => 'spip.png', |
|
| 75 | - 2 => 'This is SPIP', |
|
| 76 | - 3 => 'spip_logo', |
|
| 77 | - 4 => '@2x', |
|
| 78 | - ], |
|
| 79 | - [ |
|
| 80 | - 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='20' height='20' />", |
|
| 81 | - 1 => 'spip.png', |
|
| 82 | - 2 => 'This is SPIP', |
|
| 83 | - 3 => 'spip_logo', |
|
| 84 | - 4 => '20', |
|
| 85 | - ], |
|
| 86 | - [ |
|
| 87 | - 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='90' height='60' />", |
|
| 88 | - 1 => 'spip.png', |
|
| 89 | - 2 => 'This is SPIP', |
|
| 90 | - 3 => 'spip_logo', |
|
| 91 | - 4 => '90x*', |
|
| 92 | - ], |
|
| 93 | - [ |
|
| 94 | - 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='50' height='30' />", |
|
| 95 | - 1 => 'spip.png', |
|
| 96 | - 2 => 'This is SPIP', |
|
| 97 | - 3 => 'spip_logo', |
|
| 98 | - 4 => '50x30', |
|
| 99 | - ], |
|
| 100 | - [ |
|
| 101 | - 0 => "<img src='spip.png' alt='This is SPIP' width='30' height='20' />", |
|
| 102 | - 1 => 'spip.png', |
|
| 103 | - 2 => 'This is SPIP', |
|
| 104 | - 3 => '@2x', |
|
| 105 | - ], |
|
| 106 | - [ |
|
| 107 | - 0 => "<img src='spip.png' alt='This is SPIP' width='20' height='20' />", |
|
| 108 | - 1 => 'spip.png', |
|
| 109 | - 2 => 'This is SPIP', |
|
| 110 | - 3 => '20', |
|
| 111 | - ], |
|
| 112 | - [ |
|
| 113 | - 0 => "<img src='spip.png' alt='This is SPIP' width='90' height='60' />", |
|
| 114 | - 1 => 'spip.png', |
|
| 115 | - 2 => 'This is SPIP', |
|
| 116 | - 3 => '90x*', |
|
| 117 | - ], |
|
| 118 | - [ |
|
| 119 | - 0 => "<img src='spip.png' alt='This is SPIP' width='50' height='30' />", |
|
| 120 | - 1 => 'spip.png', |
|
| 121 | - 2 => 'This is SPIP', |
|
| 122 | - 3 => '50x30', |
|
| 123 | - ], |
|
| 124 | - [ |
|
| 125 | - 0 => "<img src='spip.png' width='30' height='20' />", |
|
| 126 | - 1 => 'spip.png', |
|
| 127 | - 2 => '@2x', |
|
| 128 | - ], |
|
| 129 | - [ |
|
| 130 | - 0 => "<img src='spip.png' width='20' height='20' />", |
|
| 131 | - 1 => 'spip.png', |
|
| 132 | - 2 => '20', |
|
| 133 | - ], |
|
| 134 | - [ |
|
| 135 | - 0 => "<img src='spip.png' width='90' height='60' />", |
|
| 136 | - 1 => 'spip.png', |
|
| 137 | - 2 => '90x*', |
|
| 138 | - ], |
|
| 139 | - [ |
|
| 140 | - 0 => "<img src='spip.png' width='50' height='30' />", |
|
| 141 | - 1 => 'spip.png', |
|
| 142 | - 2 => '50x30', |
|
| 143 | - ], |
|
| 144 | - [ |
|
| 145 | - 0 => "<img src='spip.svg' alt='' width='60' height='40' />", |
|
| 146 | - 1 => 'spip.svg', |
|
| 147 | - ], |
|
| 148 | - [ |
|
| 149 | - 0 => "<img src='spip.svg' alt='This is SPIP' width='60' height='40' />", |
|
| 150 | - 1 => 'spip.svg', |
|
| 151 | - 2 => 'This is SPIP', |
|
| 152 | - ], |
|
| 153 | - [ |
|
| 154 | - 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='60' height='40' />", |
|
| 155 | - 1 => 'spip.svg', |
|
| 156 | - 2 => 'This is SPIP', |
|
| 157 | - 3 => 'spip_logo', |
|
| 158 | - ], |
|
| 159 | - [ |
|
| 160 | - 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='30' height='20' />", |
|
| 161 | - 1 => 'spip.svg', |
|
| 162 | - 2 => 'This is SPIP', |
|
| 163 | - 3 => 'spip_logo', |
|
| 164 | - 4 => '@2x', |
|
| 165 | - ], |
|
| 166 | - [ |
|
| 167 | - 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='20' height='20' />", |
|
| 168 | - 1 => 'spip.svg', |
|
| 169 | - 2 => 'This is SPIP', |
|
| 170 | - 3 => 'spip_logo', |
|
| 171 | - 4 => '20', |
|
| 172 | - ], |
|
| 173 | - 25 => [ |
|
| 174 | - 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='90' height='60' />", |
|
| 175 | - 1 => 'spip.svg', |
|
| 176 | - 2 => 'This is SPIP', |
|
| 177 | - 3 => 'spip_logo', |
|
| 178 | - 4 => '90x*', |
|
| 179 | - ], |
|
| 180 | - 26 => [ |
|
| 181 | - 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='50' height='30' />", |
|
| 182 | - 1 => 'spip.svg', |
|
| 183 | - 2 => 'This is SPIP', |
|
| 184 | - 3 => 'spip_logo', |
|
| 185 | - 4 => '50x30', |
|
| 186 | - ], |
|
| 187 | - [ |
|
| 188 | - 0 => "<img src='spip.svg' alt='This is SPIP' width='30' height='20' />", |
|
| 189 | - 1 => 'spip.svg', |
|
| 190 | - 2 => 'This is SPIP', |
|
| 191 | - 3 => '@2x', |
|
| 192 | - ], |
|
| 193 | - [ |
|
| 194 | - 0 => "<img src='spip.svg' alt='This is SPIP' width='20' height='20' />", |
|
| 195 | - 1 => 'spip.svg', |
|
| 196 | - 2 => 'This is SPIP', |
|
| 197 | - 3 => '20', |
|
| 198 | - ], |
|
| 199 | - [ |
|
| 200 | - 0 => "<img src='spip.svg' alt='This is SPIP' width='90' height='60' />", |
|
| 201 | - 1 => 'spip.svg', |
|
| 202 | - 2 => 'This is SPIP', |
|
| 203 | - 3 => '90x*', |
|
| 204 | - ], |
|
| 205 | - [ |
|
| 206 | - 0 => "<img src='spip.svg' alt='This is SPIP' width='50' height='30' />", |
|
| 207 | - 1 => 'spip.svg', |
|
| 208 | - 2 => 'This is SPIP', |
|
| 209 | - 3 => '50x30', |
|
| 210 | - ], |
|
| 211 | - [ |
|
| 212 | - 0 => "<img src='spip.svg' width='30' height='20' />", |
|
| 213 | - 1 => 'spip.svg', |
|
| 214 | - 2 => '@2x', |
|
| 215 | - ], |
|
| 216 | - [ |
|
| 217 | - 0 => "<img src='spip.svg' width='20' height='20' />", |
|
| 218 | - 1 => 'spip.svg', |
|
| 219 | - 2 => '20', |
|
| 220 | - ], |
|
| 221 | - [ |
|
| 222 | - 0 => "<img src='spip.svg' width='90' height='60' />", |
|
| 223 | - 1 => 'spip.svg', |
|
| 224 | - 2 => '90x*', |
|
| 225 | - ], |
|
| 226 | - [ |
|
| 227 | - 0 => "<img src='spip.svg' width='50' height='30' />", |
|
| 228 | - 1 => 'spip.svg', |
|
| 229 | - 2 => '50x30', |
|
| 230 | - ], |
|
| 231 | - ]; |
|
| 232 | - } |
|
| 33 | + public static function providerFiltresFiltreBaliseImgDist(): array { |
|
| 34 | + return [ |
|
| 35 | + [ |
|
| 36 | + 0 => "<img src='https://www.spip.net/IMG/logo/siteon0.png' alt='' width='300' height='223' />", |
|
| 37 | + 1 => 'https://www.spip.net/IMG/logo/siteon0.png', |
|
| 38 | + ], |
|
| 39 | + [ |
|
| 40 | + 0 => "<img src='prive/images/logo-spip.png' alt='' width='231' height='172' />", |
|
| 41 | + 1 => 'prive/images/logo-spip.png', |
|
| 42 | + ], |
|
| 43 | + [ |
|
| 44 | + 0 => '', |
|
| 45 | + 1 => 'prive/aide_body.css', |
|
| 46 | + ], |
|
| 47 | + [ |
|
| 48 | + 0 => "<img src='prive/images/searching.gif' alt='' width='16' height='16' />", |
|
| 49 | + 1 => 'prive/images/searching.gif', |
|
| 50 | + ], |
|
| 51 | + [ |
|
| 52 | + 0 => "<img src='prive/images/searching.gif' alt='attendez' class='loading' width='16' height='16' />", |
|
| 53 | + 1 => 'prive/images/searching.gif', |
|
| 54 | + 2 => 'attendez', |
|
| 55 | + 3 => 'loading', |
|
| 56 | + ], |
|
| 57 | + [ |
|
| 58 | + 0 => "<img src='spip.png' alt='' width='60' height='40' />", |
|
| 59 | + 1 => 'spip.png', |
|
| 60 | + ], |
|
| 61 | + 1 => [ |
|
| 62 | + 0 => "<img src='spip.png' alt='This is SPIP' width='60' height='40' />", |
|
| 63 | + 1 => 'spip.png', |
|
| 64 | + 2 => 'This is SPIP', |
|
| 65 | + ], |
|
| 66 | + 2 => [ |
|
| 67 | + 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='60' height='40' />", |
|
| 68 | + 1 => 'spip.png', |
|
| 69 | + 2 => 'This is SPIP', |
|
| 70 | + 3 => 'spip_logo', |
|
| 71 | + ], |
|
| 72 | + [ |
|
| 73 | + 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='30' height='20' />", |
|
| 74 | + 1 => 'spip.png', |
|
| 75 | + 2 => 'This is SPIP', |
|
| 76 | + 3 => 'spip_logo', |
|
| 77 | + 4 => '@2x', |
|
| 78 | + ], |
|
| 79 | + [ |
|
| 80 | + 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='20' height='20' />", |
|
| 81 | + 1 => 'spip.png', |
|
| 82 | + 2 => 'This is SPIP', |
|
| 83 | + 3 => 'spip_logo', |
|
| 84 | + 4 => '20', |
|
| 85 | + ], |
|
| 86 | + [ |
|
| 87 | + 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='90' height='60' />", |
|
| 88 | + 1 => 'spip.png', |
|
| 89 | + 2 => 'This is SPIP', |
|
| 90 | + 3 => 'spip_logo', |
|
| 91 | + 4 => '90x*', |
|
| 92 | + ], |
|
| 93 | + [ |
|
| 94 | + 0 => "<img src='spip.png' alt='This is SPIP' class='spip_logo' width='50' height='30' />", |
|
| 95 | + 1 => 'spip.png', |
|
| 96 | + 2 => 'This is SPIP', |
|
| 97 | + 3 => 'spip_logo', |
|
| 98 | + 4 => '50x30', |
|
| 99 | + ], |
|
| 100 | + [ |
|
| 101 | + 0 => "<img src='spip.png' alt='This is SPIP' width='30' height='20' />", |
|
| 102 | + 1 => 'spip.png', |
|
| 103 | + 2 => 'This is SPIP', |
|
| 104 | + 3 => '@2x', |
|
| 105 | + ], |
|
| 106 | + [ |
|
| 107 | + 0 => "<img src='spip.png' alt='This is SPIP' width='20' height='20' />", |
|
| 108 | + 1 => 'spip.png', |
|
| 109 | + 2 => 'This is SPIP', |
|
| 110 | + 3 => '20', |
|
| 111 | + ], |
|
| 112 | + [ |
|
| 113 | + 0 => "<img src='spip.png' alt='This is SPIP' width='90' height='60' />", |
|
| 114 | + 1 => 'spip.png', |
|
| 115 | + 2 => 'This is SPIP', |
|
| 116 | + 3 => '90x*', |
|
| 117 | + ], |
|
| 118 | + [ |
|
| 119 | + 0 => "<img src='spip.png' alt='This is SPIP' width='50' height='30' />", |
|
| 120 | + 1 => 'spip.png', |
|
| 121 | + 2 => 'This is SPIP', |
|
| 122 | + 3 => '50x30', |
|
| 123 | + ], |
|
| 124 | + [ |
|
| 125 | + 0 => "<img src='spip.png' width='30' height='20' />", |
|
| 126 | + 1 => 'spip.png', |
|
| 127 | + 2 => '@2x', |
|
| 128 | + ], |
|
| 129 | + [ |
|
| 130 | + 0 => "<img src='spip.png' width='20' height='20' />", |
|
| 131 | + 1 => 'spip.png', |
|
| 132 | + 2 => '20', |
|
| 133 | + ], |
|
| 134 | + [ |
|
| 135 | + 0 => "<img src='spip.png' width='90' height='60' />", |
|
| 136 | + 1 => 'spip.png', |
|
| 137 | + 2 => '90x*', |
|
| 138 | + ], |
|
| 139 | + [ |
|
| 140 | + 0 => "<img src='spip.png' width='50' height='30' />", |
|
| 141 | + 1 => 'spip.png', |
|
| 142 | + 2 => '50x30', |
|
| 143 | + ], |
|
| 144 | + [ |
|
| 145 | + 0 => "<img src='spip.svg' alt='' width='60' height='40' />", |
|
| 146 | + 1 => 'spip.svg', |
|
| 147 | + ], |
|
| 148 | + [ |
|
| 149 | + 0 => "<img src='spip.svg' alt='This is SPIP' width='60' height='40' />", |
|
| 150 | + 1 => 'spip.svg', |
|
| 151 | + 2 => 'This is SPIP', |
|
| 152 | + ], |
|
| 153 | + [ |
|
| 154 | + 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='60' height='40' />", |
|
| 155 | + 1 => 'spip.svg', |
|
| 156 | + 2 => 'This is SPIP', |
|
| 157 | + 3 => 'spip_logo', |
|
| 158 | + ], |
|
| 159 | + [ |
|
| 160 | + 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='30' height='20' />", |
|
| 161 | + 1 => 'spip.svg', |
|
| 162 | + 2 => 'This is SPIP', |
|
| 163 | + 3 => 'spip_logo', |
|
| 164 | + 4 => '@2x', |
|
| 165 | + ], |
|
| 166 | + [ |
|
| 167 | + 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='20' height='20' />", |
|
| 168 | + 1 => 'spip.svg', |
|
| 169 | + 2 => 'This is SPIP', |
|
| 170 | + 3 => 'spip_logo', |
|
| 171 | + 4 => '20', |
|
| 172 | + ], |
|
| 173 | + 25 => [ |
|
| 174 | + 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='90' height='60' />", |
|
| 175 | + 1 => 'spip.svg', |
|
| 176 | + 2 => 'This is SPIP', |
|
| 177 | + 3 => 'spip_logo', |
|
| 178 | + 4 => '90x*', |
|
| 179 | + ], |
|
| 180 | + 26 => [ |
|
| 181 | + 0 => "<img src='spip.svg' alt='This is SPIP' class='spip_logo' width='50' height='30' />", |
|
| 182 | + 1 => 'spip.svg', |
|
| 183 | + 2 => 'This is SPIP', |
|
| 184 | + 3 => 'spip_logo', |
|
| 185 | + 4 => '50x30', |
|
| 186 | + ], |
|
| 187 | + [ |
|
| 188 | + 0 => "<img src='spip.svg' alt='This is SPIP' width='30' height='20' />", |
|
| 189 | + 1 => 'spip.svg', |
|
| 190 | + 2 => 'This is SPIP', |
|
| 191 | + 3 => '@2x', |
|
| 192 | + ], |
|
| 193 | + [ |
|
| 194 | + 0 => "<img src='spip.svg' alt='This is SPIP' width='20' height='20' />", |
|
| 195 | + 1 => 'spip.svg', |
|
| 196 | + 2 => 'This is SPIP', |
|
| 197 | + 3 => '20', |
|
| 198 | + ], |
|
| 199 | + [ |
|
| 200 | + 0 => "<img src='spip.svg' alt='This is SPIP' width='90' height='60' />", |
|
| 201 | + 1 => 'spip.svg', |
|
| 202 | + 2 => 'This is SPIP', |
|
| 203 | + 3 => '90x*', |
|
| 204 | + ], |
|
| 205 | + [ |
|
| 206 | + 0 => "<img src='spip.svg' alt='This is SPIP' width='50' height='30' />", |
|
| 207 | + 1 => 'spip.svg', |
|
| 208 | + 2 => 'This is SPIP', |
|
| 209 | + 3 => '50x30', |
|
| 210 | + ], |
|
| 211 | + [ |
|
| 212 | + 0 => "<img src='spip.svg' width='30' height='20' />", |
|
| 213 | + 1 => 'spip.svg', |
|
| 214 | + 2 => '@2x', |
|
| 215 | + ], |
|
| 216 | + [ |
|
| 217 | + 0 => "<img src='spip.svg' width='20' height='20' />", |
|
| 218 | + 1 => 'spip.svg', |
|
| 219 | + 2 => '20', |
|
| 220 | + ], |
|
| 221 | + [ |
|
| 222 | + 0 => "<img src='spip.svg' width='90' height='60' />", |
|
| 223 | + 1 => 'spip.svg', |
|
| 224 | + 2 => '90x*', |
|
| 225 | + ], |
|
| 226 | + [ |
|
| 227 | + 0 => "<img src='spip.svg' width='50' height='30' />", |
|
| 228 | + 1 => 'spip.svg', |
|
| 229 | + 2 => '50x30', |
|
| 230 | + ], |
|
| 231 | + ]; |
|
| 232 | + } |
|
| 233 | 233 | } |