public function testLogWarning() { $SofortLibAbstractMock = new SofortLibAbstractMock(self::$configkey); $FileLoggerHandler = $this->getMockForAbstractClass('fileLogger'); $FileLoggerHandler->expects($this->any())->method('log')->with('warning')->will($this->returnValue('warning')); $SofortLibAbstractMock->setLogger($FileLoggerHandler); $SofortLibAbstractMock->setLogEnabled(); $this->assertNull($SofortLibAbstractMock->logWarning('warning')); }
/** * @dataProvider providerSetTimeoutUrl */ public function testSetTimeoutUrl($provided) { $SofortLibAbstractMock = new SofortLibAbstractMock(self::$configkey); $SofortLibAbstractMock->setTimeoutUrl($provided); $received = $SofortLibAbstractMock->getParameters(); $this->assertEquals($provided, $received['timeout_url']); }