-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooling & PHP Version Updates #10
Conversation
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sixlive Can this file be removed now, since we're using Pest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pest uses PHPUnit under the hood so the config file is still used
$response = $e instanceof RequestException && $e->hasResponse() ? $e->getResponse() : null; | ||
|
||
$errorMessage = 'Error'; | ||
$errorCode = 0; | ||
|
||
if ($response) { | ||
$json = @json_decode((string)$response->getBody()); | ||
if ($response instanceof \Psr\Http\Message\ResponseInterface) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
return [ | ||
'User-Agent' => 'geocodio-library-php/1.2.0' | ||
'User-Agent' => 'geocodio-library-php/1.2.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is fine since it is addressed in #11 instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we address this in #11
tests/ArchTest.php
Outdated
|
||
describe('Custom relaxed preset', function (): void { | ||
arch('No final classes') | ||
->expect('EchoLabs\Sparkle') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this namespace be updated to Geocodio
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, copypasta
{ | ||
"disabled": [], | ||
"hooks": { | ||
"pre-commit": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat!! 👍
Description
Overall this PR is prepping for release 2.0 with the following changes: