Better support for errored cells
This commit is contained in:
1 parent
1b64a06fbe
commit
f7c483adbd
3 files changed
+16
-4
No files matched your search
@@ -2,7 +2,9 @@
|
||||
|
||||
namespace Box\Spout\Common\Entity;
|
||||
|
||||
class CellTest extends \PHPUnit\Framework\TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class CellTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @return void
|
||||
@@ -70,4 +72,14 @@ class CellTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
$this->assertTrue((new Cell([]))->isError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function testErroredCellValueShouldBeNull()
|
||||
{
|
||||
$cell = new Cell([]);
|
||||
$this->assertTrue($cell->isError());
|
||||
$this->assertNull($cell->getValue());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user