This commit is contained in:
madflow authored and Adrien Loison committed 2016-05-20 09:32:47 -07:00
1 parent b4724906c4
commit 2d923c7e46
3 files changed
+20

No files matched your search

+17
View File
@@ -436,6 +436,23 @@ class ReaderTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($expectedRows, $allRows, 'Cell values should not be trimmed');
}
/**
* https://github.com/box/spout/issues/218
* @return void
*/
public function testReaderShouldReadTextInHyperlinks()
{
$allRows = $this->getAllRowsForFile('sheet_with_hyperlinks.ods');
$expectedRows = [
['email', 'text'],
['1@example.com', 'text'],
['2@example.com', 'text and https://github.com/box/spout/issues/218 and text'],
];
$this->assertEquals($expectedRows, $allRows, 'Text in hyperlinks should be read');
}
/**
* @param string $fileName
* @return array All the read rows the given file
Binary file not shown.