diff options
author | Ignace Nyamagana Butera <nyamsprod@gmail.com> | 2014-04-14 16:03:52 +0200 |
---|---|---|
committer | Ignace Nyamagana Butera <nyamsprod@gmail.com> | 2014-04-14 16:03:52 +0200 |
commit | e8266eae448861a8419c8992b2815929ecb4b1e3 (patch) | |
tree | 39bbc3e5375fefb8b953a63d5b4fb9e317ae8fef /test | |
parent | c623d3dbd71bda1c1b109c9e6901e47817fa947b (diff) | |
download | csv-e8266eae448861a8419c8992b2815929ecb4b1e3.zip csv-e8266eae448861a8419c8992b2815929ecb4b1e3.tar.gz csv-e8266eae448861a8419c8992b2815929ecb4b1e3.tar.bz2 |
method name changed for consistency
Diffstat (limited to 'test')
-rw-r--r-- | test/WriterTest.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/WriterTest.php b/test/WriterTest.php index bf922c0..490d197 100644 --- a/test/WriterTest.php +++ b/test/WriterTest.php @@ -87,35 +87,35 @@ class WriterTest extends PHPUnit_Framework_TestCase /** * @expectedException InvalidArgumentException */ - public function testColumCountSetterGetter() + public function testColumsCountSetterGetter() { - $this->assertSame(-1, $this->csv->getColumnCount()); - $this->csv->setColumnCount(3); - $this->assertSame(3, $this->csv->getColumnCount()); - $this->csv->setColumnCount('toto'); + $this->assertSame(-1, $this->csv->getColumnsCount()); + $this->csv->setColumnsCount(3); + $this->assertSame(3, $this->csv->getColumnsCount()); + $this->csv->setColumnsCount('toto'); } /** * @expectedException InvalidArgumentException */ - public function testColumCountConsistency() + public function testColumsCountConsistency() { $this->csv->insertOne(['john', 'doe', 'john.doe@example.com']); - $this->csv->setColumnCount(2); + $this->csv->setColumnsCount(2); $this->csv->insertOne(['jane', 'jane.doe@example.com']); - $this->csv->setColumnCount(3); + $this->csv->setColumnsCount(3); $this->csv->insertOne(['jane', 'jane.doe@example.com']); } /** * @expectedException InvalidArgumentException */ - public function testAutoDetectColumnCount() + public function testAutoDetectColumnsCount() { - $this->csv->autoDetectColumnCount(); - $this->assertSame(-1, $this->csv->getColumnCount()); + $this->csv->autodetectColumnsCount(); + $this->assertSame(-1, $this->csv->getColumnsCount()); $this->csv->insertOne(['john', 'doe', 'john.doe@example.com']); - $this->assertSame(3, $this->csv->getColumnCount()); + $this->assertSame(3, $this->csv->getColumnsCount()); $this->csv->insertOne(['jane', 'jane.doe@example.com']); } |