reformat code
Cette révision appartient à :
Parent
ca7c96766f
révision
5059aea416
@ -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']])
|
||||||
|
Chargement…
x
Référencer dans un nouveau ticket
Bloquer un utilisateur