Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit d3af34e

Browse files
committed
Avoid useless test warning on PHPUnit 6
1 parent 017b8d7 commit d3af34e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/CookieTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testShouldBeCreatableFromAnArrayWithAllValues()
145145
* @param string $domain
146146
* @param string $expectedMessage
147147
*/
148-
public function testShouldValidateCookie($name, $value, $domain, $expectedMessage)
148+
public function testShouldValidateCookieOnConstruction($name, $value, $domain, $expectedMessage)
149149
{
150150
if ($expectedMessage) {
151151
$this->expectException(\InvalidArgumentException::class);
@@ -156,6 +156,8 @@ public function testShouldValidateCookie($name, $value, $domain, $expectedMessag
156156
if ($domain !== null) {
157157
$cookie->setDomain($domain);
158158
}
159+
160+
$this->assertInstanceOf(Cookie::class, $cookie);
159161
}
160162

161163
/**

0 commit comments

Comments
 (0)