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])); } }