/** * @test * @dataProvider nodePropertiesAndLifetime */ public function evaluateReturnsMinimumOfFutureHiddenDates($nodes, $expectedLifetime) { $mockFlowQuery = $this->buildFlowQueryWithNodesInContext($nodes); $lifetime = $this->operation->evaluate($mockFlowQuery, array()); if ($expectedLifetime === null) { $this->assertNull($lifetime); } else { $this->assertEquals($expectedLifetime, $lifetime, 'Lifetime did not match expected value +/- 1', 1); } }