-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace League\Csv\Test; | ||
namespace League\Csv\test; | ||
|
||
use SplTempFileObject; | ||
use ArrayIterator; | ||
|
@@ -44,10 +44,10 @@ public function testInsert() | |
*/ | ||
public function testSetterGetterNullBehavior() | ||
{ | ||
$this->csv->setNullHandling(Writer::NULL_AS_SKIP_CELL); | ||
$this->assertSame(Writer::NULL_AS_SKIP_CELL, $this->csv->getNullHandling()); | ||
$this->csv->setNullHandlingMode(Writer::NULL_AS_SKIP_CELL); | ||
$this->assertSame(Writer::NULL_AS_SKIP_CELL, $this->csv->getNullHandlingMode()); | ||
|
||
$this->csv->setNullHandling(23); | ||
$this->csv->setNullHandlingMode(23); | ||
} | ||
|
||
public function testInsertNullToSkipCell() | ||
|
@@ -57,7 +57,7 @@ public function testInsertNullToSkipCell() | |
'john,doe,[email protected]', | ||
['john', null, '[email protected]'], | ||
]; | ||
$this->csv->setNullHandling(Writer::NULL_AS_SKIP_CELL); | ||
$this->csv->setNullHandlingMode(Writer::NULL_AS_SKIP_CELL); | ||
foreach ($expected as $row) { | ||
$this->csv->insertOne($row); | ||
} | ||
|
@@ -74,7 +74,7 @@ public function testInsertNullToEmpty() | |
'john,doe,[email protected]', | ||
['john', null, '[email protected]'], | ||
]; | ||
$this->csv->setNullHandling(Writer::NULL_AS_EMPTY); | ||
$this->csv->setNullHandlingMode(Writer::NULL_AS_EMPTY); | ||
foreach ($expected as $row) { | ||
$this->csv->insertOne($row); | ||
} | ||
|
@@ -93,7 +93,7 @@ public function testFailedInsertWithWrongData() | |
} | ||
|
||
/** | ||
* @expectedException InvalidArgumentException | ||
* @expectedException RuntimeException | ||
*/ | ||
public function testFailedInsertWithMultiDimensionArray() | ||
{ | ||
|