mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 01:14:01 +02:00
Simplify tests: Avoid to remove random value
This commit is contained in:
@@ -58,9 +58,8 @@ class EntityTest extends \PHPUnit_Framework_TestCase
|
||||
$macBook->addValue($value);
|
||||
}
|
||||
|
||||
$randomIndex = array_rand($values);
|
||||
$macBook->removeValue($values[$randomIndex]);
|
||||
unset($values[$randomIndex]);
|
||||
$macBook->removeValue($values[0]);
|
||||
unset($values[0]);
|
||||
|
||||
$this->assertEquals($values, $macBook->getValues());
|
||||
}
|
||||
|
Reference in New Issue
Block a user