reformat code

Cette révision appartient à :
Daniel Seifert 2025-01-08 15:29:51 +01:00
Parent ca7c96766f
révision 5059aea416
5 fichiers modifiés avec 11 ajouts et 8 suppressions

Voir le fichier

@ -17,4 +17,6 @@ declare(strict_types=1);
namespace D3\KlicktippPhpClient\Exceptions; namespace D3\KlicktippPhpClient\Exceptions;
interface KlicktippExceptionInterface {} interface KlicktippExceptionInterface
{
}

Voir le fichier

@ -550,7 +550,7 @@ class AccountTest extends TestCase
public function testGetArrayCollectionFromValue($value, ?ArrayCollection $expected, bool $expectException): void public function testGetArrayCollectionFromValue($value, ?ArrayCollection $expected, bool $expectException): void
{ {
if ($expectException) { if ($expectException) {
$this->expectException( InvalidCredentialTypeException::class ); $this->expectException(InvalidCredentialTypeException::class);
} }
$this->assertEquals( $this->assertEquals(
@ -579,7 +579,7 @@ class AccountTest extends TestCase
public function testGetStringOrNullValue($value, ?string $expected, bool $expectException): void public function testGetStringOrNullValue($value, ?string $expected, bool $expectException): void
{ {
if ($expectException) { if ($expectException) {
$this->expectException( InvalidCredentialTypeException::class ); $this->expectException(InvalidCredentialTypeException::class);
} }
$this->assertEquals( $this->assertEquals(
@ -608,7 +608,7 @@ class AccountTest extends TestCase
public function testGetIntOrNullValue($value, ?int $expected, bool $expectException): void public function testGetIntOrNullValue($value, ?int $expected, bool $expectException): void
{ {
if ($expectException) { if ($expectException) {
$this->expectException( InvalidCredentialTypeException::class ); $this->expectException(InvalidCredentialTypeException::class);
} }
$this->assertEquals( $this->assertEquals(
@ -637,7 +637,7 @@ class AccountTest extends TestCase
public function testGetBooleanOrNullValue($value, ?bool $expected, bool $expectException): void public function testGetBooleanOrNullValue($value, ?bool $expected, bool $expectException): void
{ {
if ($expectException) { if ($expectException) {
$this->expectException( InvalidCredentialTypeException::class ); $this->expectException(InvalidCredentialTypeException::class);
} }
$this->assertEquals( $this->assertEquals(

Voir le fichier

@ -180,7 +180,8 @@ class SubscriptionTest extends TestCase
* @throws ReflectionException * @throws ReflectionException
* @covers \D3\KlicktippPhpClient\Entities\Subscription::setName * @covers \D3\KlicktippPhpClient\Entities\Subscription::setName
*/ */
public function testSetname(): void { public function testSetname(): void
{
$sut = $this->getMockBuilder(Subscription::class) $sut = $this->getMockBuilder(Subscription::class)
->onlyMethods(['set']) ->onlyMethods(['set'])
->setConstructorArgs([[SubscriptionEndpoint::LISTID => 'foo']]) ->setConstructorArgs([[SubscriptionEndpoint::LISTID => 'foo']])