Completed
Push — master ( 33dbe9...353890 )
by Daniel
02:07
created
tests/DataExtractor/CsvTableReaderTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@
 block discarded – undo
6 6
 {
7 7
 	function testCsvReading() {
8 8
 
9
-		$csv = new CsvTableReader(__DIR__ . '/fixture/input.csv');
9
+		$csv = new CsvTableReader(__DIR__.'/fixture/input.csv');
10 10
 		$this->assertEquals(['Col1', 'Col2', 'Col3'], $csv->getColumns());
11 11
 
12 12
 		$extractedData = [];
13
-		foreach($csv as $record) {
13
+		foreach ($csv as $record) {
14 14
 			$extractedData[] = $record;
15 15
 		}
16 16
 
17 17
 		$this->assertEquals(
18 18
 			[
19
-				[ 'Col1' => 'One', 'Col2' => 2, 'Col3' => 'Three' ],
20
-				[ 'Col1' => 'Hello, Sam', 'Col2' => 5, 'Col3' => "Nice to meet you\nWhat is your name?" ]
19
+				['Col1' => 'One', 'Col2' => 2, 'Col3' => 'Three'],
20
+				['Col1' => 'Hello, Sam', 'Col2' => 5, 'Col3' => "Nice to meet you\nWhat is your name?"]
21 21
 			],
22 22
 			$extractedData
23 23
 		);
Please login to merge, or discard this patch.
tests/DataExtractor/CsvTableWriterTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
 		$csv = new CsvTableWriter('/tmp/output.csv');
14 14
 
15 15
 		$csv->start(['Col1', 'Col2', 'Col3']);
16
-		$csv->writeRecord([ 'Col1' => 'One', 'Col2' => 2, 'Col3' => 'Three' ]);
17
-		$csv->writeRecord([ 'Col1' => 'Hello, Sam', 'Col2' => 5, 'Col3' => "Nice to meet you\nWhat is your name?" ]);
16
+		$csv->writeRecord(['Col1' => 'One', 'Col2' => 2, 'Col3' => 'Three']);
17
+		$csv->writeRecord(['Col1' => 'Hello, Sam', 'Col2' => 5, 'Col3' => "Nice to meet you\nWhat is your name?"]);
18 18
 		$csv->finish();
19 19
 
20 20
 		$csvContent = file_get_contents('/tmp/output.csv');
21 21
 		unlink('/tmp/output.csv');
22 22
 
23
-		$fixture = file_get_contents(__DIR__ . '/fixture/input.csv');
23
+		$fixture = file_get_contents(__DIR__.'/fixture/input.csv');
24 24
 
25 25
 		$this->assertEquals($fixture, $csvContent);
26 26
 	}
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 
34 34
 		$csv = new CsvTableWriter('/tmp/output.csv');
35 35
 
36
-		$csv->writeRecord([ 'Col1' => 'One', 'Col2' => 2, 'Col3' => 'Three' ]);
37
-		$csv->writeRecord([ 'Col1' => 'Hello, Sam', 'Col2' => 5, 'Col3' => "Nice to meet you\nWhat is your name?" ]);
36
+		$csv->writeRecord(['Col1' => 'One', 'Col2' => 2, 'Col3' => 'Three']);
37
+		$csv->writeRecord(['Col1' => 'Hello, Sam', 'Col2' => 5, 'Col3' => "Nice to meet you\nWhat is your name?"]);
38 38
 		$csv->finish();
39 39
 
40 40
 		$csvContent = file_get_contents('/tmp/output.csv');
41 41
 		unlink('/tmp/output.csv');
42 42
 
43
-		$fixture = file_get_contents(__DIR__ . '/fixture/input.csv');
43
+		$fixture = file_get_contents(__DIR__.'/fixture/input.csv');
44 44
 
45 45
 		$this->assertEquals($fixture, $csvContent);
46 46
 	}
Please login to merge, or discard this patch.
tests/SmokeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('PACKAGE_ROOT' , dirname(__DIR__).'/');
4
-require_once(PACKAGE_ROOT . 'src/SSPak.php');
3
+define('PACKAGE_ROOT', dirname(__DIR__).'/');
4
+require_once(PACKAGE_ROOT.'src/SSPak.php');
5 5
 
6 6
 /**
7 7
  * Confirm that the compile binary executes
Please login to merge, or discard this patch.