Skip to content

Commit

Permalink
Merge pull request #74 from eclipxe13/maintenance-20230213
Browse files Browse the repository at this point in the history
Mantenimiento 20230213 (fix build)
  • Loading branch information
eclipxe13 authored Feb 13, 2023
2 parents 985c086 + 8474290 commit c5a7c43
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="php-cs-fixer" version="^3.14.3" installed="3.14.3" location="./tools/php-cs-fixer" copy="false"/>
<phar name="php-cs-fixer" version="^3.14.4" installed="3.14.4" location="./tools/php-cs-fixer" copy="false"/>
<phar name="phpcs" version="^3.7.1" installed="3.7.1" location="./tools/phpcs" copy="false"/>
<phar name="phpcbf" version="^3.7.1" installed="3.7.1" location="./tools/phpcbf" copy="false"/>
<phar name="phpstan" version="^1.9.14" installed="1.9.14" location="./tools/phpstan" copy="false"/>
<phar name="phpstan" version="^1.9.17" installed="1.9.17" location="./tools/phpstan" copy="false"/>
</phive>
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
}
],
"config": {
"allow-plugins": {
"php-http/discovery": false
},
"preferred-install": {
"*": "dist"
},
Expand Down
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Usamos [Versionado Semántico 2.0.0](SEMVER.md) por lo que puedes usar esta libr

## Cambios aún no liberados en una versión

### Cambios no liberados: 2023-02-13

- Actualización de herramientas de desarrollo.
- Se agrega la configuración en `composer.json` para no permitir el uso de *plugins* de `php-http/discovery`.
- En las pruebas, se refactoriza `SatHttpGatewayTest::testMethodPostLoginDataIsDeprecated` para probar que
el método `postLoginData` está deprecado, dado que PHPUnit 9.6 descontinuó el método `expectDeprecation`.

### Cambios no liberados: 2023-01-31

- Actualización de herramientas de desarrollo.
Expand Down
13 changes: 10 additions & 3 deletions tests/Unit/SatHttpGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ final class SatHttpGatewayTest extends TestCase
{
public function testMethodPostLoginDataIsDeprecated(): void
{
$gateway = new SatHttpGateway();
$this->expectDeprecation();
$gateway->postLoginData('foo', []);
$gateway = new class () extends SatHttpGateway {
public function postCiecLoginData(string $loginUrl, array $formParams): string
{
return '';
}
};

@$gateway->postLoginData('foo', []);
$error = error_get_last() ?? [];
$this->assertSame(E_USER_DEPRECATED, intval($error['type'] ?? 0));
}
}

0 comments on commit c5a7c43

Please sign in to comment.