/** * @test */ public function shouldReturnDefgaultSDKVersionWhenComposerFileIsNotGiven() { //given $OpenPayU_ConfigurationMock = $this->getMock('OpenPayU_Configuration'); $OpenPayU_ConfigurationMock->expects($this->any())->method('getComposerFilePath')->will($this->returnValue('mock.json')); //when $sdkVersion = OpenPayU_Configuration::getSdkVersion(); //then $this->assertEquals(self::PHP_SDK_VERSION, $sdkVersion); }