/** * @dataProvider customerprotectionProvider */ public function testSetCustomerprotection($provided) { $Sofortueberweisung = new Sofortueberweisung(self::$configkey); $Sofortueberweisung->setCustomerprotection($provided[0]); $received = $Sofortueberweisung->getParameters(); $this->assertSame($provided[0], $received['su']['customer_protection']); $this->assertNotSame($provided[1], $received['su']['customer_protection']); $parameters = self::getProperty('_parameters'); $parameters->setValue($Sofortueberweisung, array('test' => 'test')); $Sofortueberweisung->setCustomerprotection($provided[0]); $received = $Sofortueberweisung->getParameters(); $this->assertEquals($provided[0], $received['su']['customer_protection']); }
/** * @dataProvider providerSetVersion $provided */ public function testSetVersion($provided) { $Sofortueberweisung = new Sofortueberweisung(self::$configkey); $Sofortueberweisung->setVersion($provided); $received = $Sofortueberweisung->getParameters(); $this->assertEquals($provided, $received['interface_version']); }