Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'blank_line_after_opening_tag' => false, // Do not waste space between <?php and declare.
'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false],
'php_unit_test_class_requires_covers' => true,
'php_unit_construct' => true,
'php_unit_method_casing' => true,
// Do not enable by default. These rules require review!! (but they are useful)
// '@PHP80Migration:risky' => true,
Expand Down
12 changes: 6 additions & 6 deletions tests/SubscriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ public function testCreateMinimal(): void
];
$subscription = Subscription::create($subscriptionArray);
$this->assertEquals("http://toto.com", $subscription->getEndpoint());
$this->assertEquals(null, $subscription->getPublicKey());
$this->assertEquals(null, $subscription->getAuthToken());
$this->assertEquals(null, $subscription->getContentEncoding());
$this->assertNull($subscription->getPublicKey());
$this->assertNull($subscription->getAuthToken());
$this->assertNull($subscription->getContentEncoding());
}

public function testConstructMinimal(): void
{
$subscription = new Subscription("http://toto.com");
$this->assertEquals("http://toto.com", $subscription->getEndpoint());
$this->assertEquals(null, $subscription->getPublicKey());
$this->assertEquals(null, $subscription->getAuthToken());
$this->assertEquals(null, $subscription->getContentEncoding());
$this->assertNull($subscription->getPublicKey());
$this->assertNull($subscription->getAuthToken());
$this->assertNull($subscription->getContentEncoding());
}

public function testCreatePartial(): void
Expand Down