diff options
Diffstat (limited to 'test/WriterTest.php')
-rw-r--r-- | test/WriterTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/WriterTest.php b/test/WriterTest.php index 86db64a..ff67e73 100644 --- a/test/WriterTest.php +++ b/test/WriterTest.php @@ -115,7 +115,7 @@ class WriterTest extends PHPUnit_Framework_TestCase } /** - * @expectedException InvalidArgumentException + * @expectedException RuntimeException */ public function testColumsCountConsistency() { @@ -127,7 +127,7 @@ class WriterTest extends PHPUnit_Framework_TestCase } /** - * @expectedException InvalidArgumentException + * @expectedException RuntimeException */ public function testAutoDetectColumnsCount() { @@ -189,7 +189,7 @@ class WriterTest extends PHPUnit_Framework_TestCase $this->csv->insertOne($row); } - $reader = $this->csv->newReader(); + $reader = $this->csv->getReader(); $this->assertSame(['john', 'doe', 'john.doe@example.com'], $reader->fetchOne(0)); } } |