Merge remote-tracking branch 'origin/master' into develop_3.0
This commit is contained in:
commit
5a470188a9
6 files changed
+42
-3
No files matched your search
@@ -111,6 +111,22 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($expectedRows, $allRows);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testReadShouldSupportPrefixedSharedStringsXML()
|
||||
{
|
||||
// The sharedStrings.xml file of this spreadsheet is prefixed.
|
||||
// For instance, they use "<x:sst>" instead of "<sst>", etc.
|
||||
$allRows = $this->getAllRowsForFile('sheet_with_prefixed_shared_strings_xml.xlsx');
|
||||
|
||||
$expectedRows = [
|
||||
['s1--A1', 's1--B1', 's1--C1', 's1--D1', 's1--E1'],
|
||||
['s1--A2', 's1--B2', 's1--C2', 's1--D2', 's1--E2'],
|
||||
];
|
||||
$this->assertEquals($expectedRows, $allRows);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -168,6 +184,21 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($expectedRows, $allRows);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testReadShouldSupportFilesWithRowsNotStartingAtColumnA()
|
||||
{
|
||||
// file where the row starts at column C:
|
||||
// <row r="1"><c r="C1" s="0" t="s"><v>0</v></c>...
|
||||
$allRows = $this->getAllRowsForFile('sheet_with_row_not_starting_at_column_a.xlsx');
|
||||
|
||||
$expectedRows = [
|
||||
['', '', 's1--C1', 's1--D1', 's1--E1'],
|
||||
];
|
||||
$this->assertEquals($expectedRows, $allRows);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user