test/src/Api/Client/LicenseHistoryFactoryTest.php
/**
     * Helper function to verify the response.
     * @param LicenseHistoryResponse $response
     */
Helper function to verify the response.
Helper function to verify the response .
private function _checkTestResponse(LicenseHistoryResponse $response)
    {
        $this->assertNotNull($response);
        $this->assertEquals(LicenseHistoryFactoryTest::TEST_NB_RESULTS, $response->getNbResults());
        $this->assertEquals(LicenseHistoryFactoryTest::TEST_FILE_ID, $response->getFiles()[0]->getId());
        $this->assertEquals(LicenseHistoryFactoryTest::TEST_FILE_TITLE, $response->getFiles()[0]->getTitle());
    }
private function _checkTestResponse ( LicenseHistoryResponse $ response ) { $ this -> assertNotNull ( $ response ) ; $ this -> assertEquals ( LicenseHistoryFactoryTest :: TEST_NB_RESULTS , $ response -> getNbResults ( ) ) ; $ this -> assertEquals ( LicenseHistoryFactoryTest :: TEST_FILE_ID , $ response -> getFiles ( ) [ 0 ] -> getId ( ) ) ; $ this -> assertEquals ( LicenseHistoryFactoryTest :: TEST_FILE_TITLE , $ response -> getFiles ( ) [ 0 ] -> getTitle ( ) ) ; }
Helper function to verify the response.
Helper function to verify the response .