Mark SUBTOTAL test as skipped for the moment
This commit is contained in:
parent
f08eeaa2ed
commit
3298667153
|
@ -602,11 +602,10 @@ class MathTrigTest extends TestCase
|
||||||
return require 'data/Calculation/MathTrig/SUBTOTALHIDDEN.php';
|
return require 'data/Calculation/MathTrig/SUBTOTALHIDDEN.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static $cellValues;
|
protected function cellValues($cellValues) {
|
||||||
|
return function() use ($cellValues) {
|
||||||
public function cellValues() {
|
yield from $cellValues;
|
||||||
echo 'CALLED cellValues()', PHP_EOL;
|
};
|
||||||
yield from [1,2,3,4,5,6,7,8,9,10];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -616,8 +615,9 @@ class MathTrigTest extends TestCase
|
||||||
*/
|
*/
|
||||||
public function testNestedSUBTOTAL($expectedResult, ...$args)
|
public function testNestedSUBTOTAL($expectedResult, ...$args)
|
||||||
{
|
{
|
||||||
self::$cellValues = Functions::flattenArray(array_slice($args, 1));
|
$this->markTestSkipped('Revisite when cellValueGenarator() works for mocking getValue() calls');
|
||||||
$cellValueGenerator = $this->cellValues();
|
|
||||||
|
$cellValueGenerator = $this->cellValues(Functions::flattenArray(array_slice($args, 1)));
|
||||||
|
|
||||||
$cell = $this->getMockBuilder(Cell::class)
|
$cell = $this->getMockBuilder(Cell::class)
|
||||||
->setMethods(['getValue', 'isFormula'])
|
->setMethods(['getValue', 'isFormula'])
|
||||||
|
|
Loading…
Reference in New Issue