From 46da769ca68c89555b5f8727f761979a31198028 Mon Sep 17 00:00:00 2001 From: Arkadiusz Kondas Date: Mon, 25 Apr 2016 20:16:53 +0200 Subject: [PATCH] typo in variable name --- tests/Phpml/Dataset/Demo/GlassTest.php | 8 ++++---- tests/Phpml/Dataset/Demo/WineTest.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Phpml/Dataset/Demo/GlassTest.php b/tests/Phpml/Dataset/Demo/GlassTest.php index 62cef3a..6f6e177 100644 --- a/tests/Phpml/Dataset/Demo/GlassTest.php +++ b/tests/Phpml/Dataset/Demo/GlassTest.php @@ -10,13 +10,13 @@ class GlassTest extends \PHPUnit_Framework_TestCase { public function testLoadingWineDataset() { - $iris = new Glass(); + $glass = new Glass(); // whole dataset - $this->assertEquals(214, count($iris->getSamples())); - $this->assertEquals(214, count($iris->getLabels())); + $this->assertEquals(214, count($glass->getSamples())); + $this->assertEquals(214, count($glass->getLabels())); // one sample features count - $this->assertEquals(9, count($iris->getSamples()[0])); + $this->assertEquals(9, count($glass->getSamples()[0])); } } diff --git a/tests/Phpml/Dataset/Demo/WineTest.php b/tests/Phpml/Dataset/Demo/WineTest.php index 5aa3a3b..de16483 100644 --- a/tests/Phpml/Dataset/Demo/WineTest.php +++ b/tests/Phpml/Dataset/Demo/WineTest.php @@ -10,13 +10,13 @@ class WineTest extends \PHPUnit_Framework_TestCase { public function testLoadingWineDataset() { - $iris = new Wine(); + $wine = new Wine(); // whole dataset - $this->assertEquals(178, count($iris->getSamples())); - $this->assertEquals(178, count($iris->getLabels())); + $this->assertEquals(178, count($wine->getSamples())); + $this->assertEquals(178, count($wine->getLabels())); // one sample features count - $this->assertEquals(13, count($iris->getSamples()[0])); + $this->assertEquals(13, count($wine->getSamples()[0])); } }