/**
  * @dataProvider isWarningProvider
  */
 public function testIsWarning($provided, $expected)
 {
     $SofortLibAbstractMock = new SofortLibAbstractMock(self::$configkey);
     $SofortLibAbstractMock->warnings = $expected;
     if (isset($provided[1]) && in_array($provided[1], array('global', 'su', 'sr', 'not'))) {
         $provided[1] = $provided[1] == 'not' ? 'all' : $provided[1];
         $this->assertTrue($SofortLibAbstractMock->isWarning($provided[1]));
         $this->assertFalse($SofortLibAbstractMock->isWarning($provided[1], 'test'));
     } else {
         $this->assertTrue($SofortLibAbstractMock->isWarning());
     }
     $SofortLibAbstractMock->warnings = 'test';
     $this->assertEquals('test', $SofortLibAbstractMock->warnings);
     $SofortLibAbstractMock->warnings = NULL;
     $this->assertFalse($SofortLibAbstractMock->isWarning('all'));
 }