/** * @dataProvider setTimeProvider */ public function testSetTime($provided) { $SofortLibTransactionData = new SofortLibTransactionData(self::$configkey); $SofortLibTransactionData->setTime($provided[0], $provided[1]); $received = $SofortLibTransactionData->getParameters(); $this->assertEquals($provided, array($received['from_time'], $received['to_time'])); }