public function FileApiTest::testLastModifiedInvalidResponseCantParseFormattedTimeString in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::testLastModifiedInvalidResponseCantParseFormattedTimeString()
@covers \Smartling\File\FileApi::lastModified @expectedException \Smartling\Exceptions\SmartlingApiException @expectedExceptionMessage Can't parse formatted time string: test.
File
- vendor/
smartling/ api-sdk-php/ tests/ unit/ FileApiTest.php, line 340
Class
- FileApiTest
- Test class for Smartling\File\FileApi.
Namespace
Smartling\Tests\UnitCode
public function testLastModifiedInvalidResponseCantParseFormattedTimeString() {
$this
->prepareClientResponseMock(false);
$this->client
->expects($this
->once())
->method('request')
->willReturn($this->responseMock);
$response = '{"response":{"code":"SUCCESS","messages":[], "data":{"totalCount":1629,"items": [{"localId": "locale-test","lastModified": "test"}]}}}';
$this->responseMock
->expects(self::any())
->method('getBody')
->willReturn($response);
$this->object
->lastModified('test.xml');
}