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.
|
|
|
|
*/
|
2020-05-18 04:49:57 +00:00
|
|
|
public function testLoadXlsSample(): void
|
2018-10-07 07:38:13 +00:00
|
|
|
{
|
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());
|
|
|
|
}
|
|
|
|
}
|