Skip to content

Conversation

@B3none
Copy link
Contributor

@B3none B3none commented Mar 27, 2019

Worth noting that this will require a major version bump.

@cjmaxik
Copy link
Contributor

cjmaxik commented Mar 28, 2019

What's the point of update? Please explain this changes.

@B3none
Copy link
Contributor Author

B3none commented Mar 28, 2019

Pushing the version to PHP 7.1 syntax so that people using the client are on the latest supported version of PHP.

https://www.php.net/supported-versions.php

I've also altered a little bit of the logic to prevent duplicate code by implementing an abstract class for GroupedModels.

Copy link
Contributor

@cjmaxik cjmaxik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check all the dependencies since they are not using latest and/or stable version.

composer.json Outdated
"php-http/message": "^1.2",
"guzzlehttp/psr7": "^1.3"
"guzzlehttp/psr7": "^1.3",
"leedavis81/vent": "dev-master",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use other solution since this is old bundle and there is no stable version.

@B3none
Copy link
Contributor Author

B3none commented Mar 28, 2019

Updates:

  • Use phpunit v7.5.8
  • Implement the Rules endpoint
  • Update unit test

@B3none
Copy link
Contributor Author

B3none commented Mar 31, 2019

@cjmaxik This is all working as to be expected now. Please check the build to see why it failed (not an error with the code).

php:
- 5.6
- 7.0
- 7.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add 7.2 and (maybe) 7.3, remove hhvm

class ClientTest extends TestCase
{
private $testAccount = 585204;
const TEST_ACCOUNT = 585204;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a proper test account for production (maybe even several accounts for checking private states)

$servers = $this->client->servers();

$this->assertEquals($servers[0]->name, 'Europe 1');
$this->assertEquals($servers->getServers()[0]->getName(), 'Europe 1 [Simulation]');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be streamlined for the cases if we will change server names.

*/
public function __construct(array $config = [], bool $secure = true)
{
$scheme = $secure ? 'https' : 'http';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the scheme be always secure?

@ShawnCZek
Copy link
Member

Closing this pull request due to inactivity. Additionally, this was replaced and extended by the new pull request; #12.

@ShawnCZek ShawnCZek closed this Nov 30, 2019
@bensherred bensherred mentioned this pull request Nov 30, 2019
ShawnCZek added a commit that referenced this pull request Dec 24, 2019
Rework of the library

This PR continues on from and extends #9 which has been closed due to inactivity.

* Seperated the tests into individual test classes
* Removed hhvm from Travis CI config
* Set the schema to always use HTTPS
* Changed the way each request is handled (you can refer to the wiki for more information)
* We now have a model to represent each API endpoint including new properties
* Simplified the README.md
* Added extended documentation via the wiki
* Removed the examples from the package (the wiki has plenty of examples)
* Updated composer dependencies to the latest version
* Set the minimum PHP version to PHP 7.2
* Added PHP 7.2 and PHP 7.4 to the Travis CI config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants