Completed
Push — master ( 6c1ed5...22fbb1 )
by cam
02:28
created
ecrire/tests/Xml/XmlHackTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
 	#[DataProvider('providerXmlIsNotPhp')]
17 17
 	public function testXmlIsNotPhp(string $squelette): void {
18
-		$skel = $this->relativePath(__DIR__ . '/data/' . $squelette);
18
+		$skel = $this->relativePath(__DIR__.'/data/'.$squelette);
19 19
 		$out = recuperer_fond($skel, [], [
20 20
 			'raw' => true,
21 21
 			'trim' => true
Please login to merge, or discard this patch.
ecrire/tests/Testing/TemplateTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 block discarded – undo
11 11
 {
12 12
 	public function testNativeRecupererFond(): void {
13 13
 		$dir = $this->relativePath(__DIR__);
14
-		$this->assertEquals('Hello World', recuperer_fond($dir . '/data/texte_hello_world'));
14
+		$this->assertEquals('Hello World', recuperer_fond($dir.'/data/texte_hello_world'));
15 15
 	}
16 16
 
17 17
 	public function testRenderer(): void {
18 18
 		$dir = $this->relativePath(__DIR__);
19
-		$template = new Template($dir . '/data/texte_hello_world');
19
+		$template = new Template($dir.'/data/texte_hello_world');
20 20
 		$this->assertEquals('Hello World', $template->render());
21 21
 	}
22 22
 }
Please login to merge, or discard this patch.
ecrire/tests/Testing/TemplatingTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 		$this->assertInstanceOf(FileLoader::class, $templating->getLoader());
20 20
 		$this->assertEquals($loader, $templating->getLoader());
21 21
 
22
-		$file = __DIR__ . '/data/texte_hello_world.html';
22
+		$file = __DIR__.'/data/texte_hello_world.html';
23 23
 		$expected = trim(file_get_contents($file));
24 24
 
25 25
 		// Indirect render
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
 	public function testFileLoaderException(): void {
39 39
 		$templating = new Templating(new FileLoader());
40
-		$file = __DIR__ . '/data/inexistant_file.html';
40
+		$file = __DIR__.'/data/inexistant_file.html';
41 41
 		$this->expectException(TemplateNotFoundException::class);
42 42
 		$templating->render($file);
43 43
 	}
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	public function testChainLoader(): void {
53 53
 		$template = new Templating(new ChainLoader([new FileLoader(), new StringLoader()]));
54 54
 
55
-		$file = __DIR__ . '/data/texte_hello_world.html';
55
+		$file = __DIR__.'/data/texte_hello_world.html';
56 56
 		$expected = trim(file_get_contents($file));
57 57
 		$actual = $template->render($file);
58 58
 		$this->assertEquals($expected, $actual);
Please login to merge, or discard this patch.
ecrire/tests/Squelettes/Critere/DoublonsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	}
29 29
 
30 30
 	public function testCritereDoublonsMultiplesBoucles(): void {
31
-		$this->assertOkSquelette(__DIR__ . '/data/doublons.html');
31
+		$this->assertOkSquelette(__DIR__.'/data/doublons.html');
32 32
 	}
33 33
 
34 34
 	public function testDoublonsAuteurs(): void {
Please login to merge, or discard this patch.
ecrire/tests/Squelettes/Critere/DoublonsNotesTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		$id_document = sql_getfetsel(
51 51
 			'id_document',
52 52
 			'spip_documents',
53
-			sql_in('mode', ['logoon','logooff','vignette'], 'not'),
53
+			sql_in('mode', ['logoon', 'logooff', 'vignette'], 'not'),
54 54
 			orderby: 'rand()',
55 55
 			limit: '0,1'
56 56
 		);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 			'id_article' => -1,
62 62
 			'titre' => 'test pour doublons_notes.html',
63 63
 			'statut' => 'prepa',
64
-			'texte' => 'hello [[ xx <doc' . $id_document . '> ]].'
64
+			'texte' => 'hello [[ xx <doc'.$id_document.'> ]].'
65 65
 		];
66 66
 		$id_article = sql_getfetsel('id_article', 'spip_articles', 'id_article = -1');
67 67
 		if ($id_article === null) {
Please login to merge, or discard this patch.
ecrire/tests/Squelettes/Critere/OperatorRegexpLikeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		$art = $this->getArticleIdTitle();
46 46
 		$contexte = [
47 47
 			'id_article' => $art['id_article'],
48
-			'like' => $art['starts_with'] . '%',
48
+			'like' => $art['starts_with'].'%',
49 49
 		];
50 50
 		$this->assertOkCode(<<<SPIP
51 51
 			<BOUCLE_b(ARTICLES){titre like #ENV{like}}{id_article}>ok</BOUCLE_b>
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		$art = $this->getArticleIdTitle();
71 71
 		$contexte = [
72 72
 			'id_article' => $art['id_article'],
73
-			'regexp' => '^' . $art['starts_with'],
73
+			'regexp' => '^'.$art['starts_with'],
74 74
 		];
75 75
 		$this->assertOkCode(<<<SPIP
76 76
 			<BOUCLE_b(ARTICLES){titre == #ENV{regexp}}{id_article}>ok</BOUCLE_b>
Please login to merge, or discard this patch.
ecrire/tests/Squelettes/Balise/BaliseDynamiqueLangTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 class BaliseDynamiqueLangTest extends SquelettesTestCase
11 11
 {
12 12
 	public static function setUpBeforeClass(): void {
13
-		$GLOBALS['dossier_squelettes'] = self::relativePath(__DIR__ . '/data/squelettes');
13
+		$GLOBALS['dossier_squelettes'] = self::relativePath(__DIR__.'/data/squelettes');
14 14
 	}
15 15
 
16 16
 	/**
Please login to merge, or discard this patch.
ecrire/tests/Squelettes/Balise/ExposeTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@  discard block
 block discarded – undo
15 15
 
16 16
 	public function testExposerRubrique(): void {
17 17
 		$id_rubrique = sql_getfetsel('id_rubrique', 'spip_rubriques', [
18
-			'id_parent=' . sql_quote(0),
19
-			'statut=' . sql_quote('publie'),
18
+			'id_parent='.sql_quote(0),
19
+			'statut='.sql_quote('publie'),
20 20
 		]);
21 21
 
22 22
 		$id_seconde_rubrique = sql_getfetsel('id_rubrique', 'spip_rubriques', [
23
-			'id_parent=' . sql_quote(0),
24
-			'statut=' . sql_quote('publie'),
25
-			'id_rubrique != ' . (int) $id_rubrique,
23
+			'id_parent='.sql_quote(0),
24
+			'statut='.sql_quote('publie'),
25
+			'id_rubrique != '.(int) $id_rubrique,
26 26
 		]);
27 27
 
28 28
 		if (!$id_rubrique || !$id_seconde_rubrique) {
@@ -50,6 +50,6 @@  discard block
 block discarded – undo
50 50
 
51 51
 	#[Depends('testExposerRubrique')]
52 52
 	public function testExposerRubriqueInclus(): void {
53
-		$this->assertOkSquelette(__DIR__ . '/data/balise_expose.html');
53
+		$this->assertOkSquelette(__DIR__.'/data/balise_expose.html');
54 54
 	}
55 55
 }
Please login to merge, or discard this patch.
ecrire/tests/Squelettes/Balise/BaliseDynamiquePhraserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 class BaliseDynamiquePhraserTest extends SquelettesTestCase
11 11
 {
12 12
 	public static function setUpBeforeClass(): void {
13
-		$GLOBALS['dossier_squelettes'] = self::relativePath(__DIR__ . '/data/squelettes');
13
+		$GLOBALS['dossier_squelettes'] = self::relativePath(__DIR__.'/data/squelettes');
14 14
 	}
15 15
 
16 16
 	public function testBaliseDynamiquePhraser(): void {
Please login to merge, or discard this patch.