2018-10-07 07:38:13 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Reader;
|
|
|
|
|
|
|
|
use PhpOffice\PhpSpreadsheet\Reader\Xls;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
class XlsTest extends TestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Test load Xls file.
|
|
|
|
*/
|
|
|
|
public function testLoadXlsSample()
|
|
|
|
{
|
2020-05-17 09:35:55 +00:00
|
|
|
$filename = 'tests/data/Reader/XLS/sample.xls';
|
2018-10-07 07:38:13 +00:00
|
|
|
$reader = new Xls();
|
|
|
|
$spreadsheet = $reader->load($filename);
|
|
|
|
self::assertEquals('Title', $spreadsheet->getSheet(0)->getCell('A1')->getValue());
|
|
|
|
}
|
|
|
|
}
|