typo in variable name

This commit is contained in:
Arkadiusz Kondas 2016-04-25 20:16:53 +02:00
parent 118ee0b5fe
commit 46da769ca6
2 changed files with 8 additions and 8 deletions

View File

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

View File

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