reformat code
This commit is contained in:
parent
ca7c96766f
commit
5059aea416
src
tests/unit/Entities
@ -84,4 +84,4 @@ abstract class Entity extends ArrayCollection
|
|||||||
|
|
||||||
return is_null($value) ? null : (bool) $value;
|
return is_null($value) ? null : (bool) $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,4 +17,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace D3\KlicktippPhpClient\Exceptions;
|
namespace D3\KlicktippPhpClient\Exceptions;
|
||||||
|
|
||||||
interface KlicktippExceptionInterface {}
|
interface KlicktippExceptionInterface
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@ -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(
|
||||||
|
@ -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']])
|
||||||
|
@ -212,4 +212,4 @@ class TagTest extends TestCase
|
|||||||
yield 'has endpoint' => [true, self::once(), true];
|
yield 'has endpoint' => [true, self::once(), true];
|
||||||
yield 'has no endpoint' => [false, self::never(), null];
|
yield 'has no endpoint' => [false, self::never(), null];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user