Skip to content

Commit 1cebb4f

Browse files
committed
Fix deprecated phpunit annotation
1 parent 6a05eff commit 1cebb4f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/CookieTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,10 @@ public function testIsExpired()
197197
$this->assertFalse($cookie->isExpired());
198198
}
199199

200-
/**
201-
* @expectedException \UnexpectedValueException
202-
* @expectedExceptionMessage The cookie expiration time "string" is not valid.
203-
*/
204200
public function testConstructException()
205201
{
202+
$this->expectException('UnexpectedValueException');
203+
$this->expectExceptionMessage('The cookie expiration time "string" is not valid.');
206204
$cookie = new Cookie('foo', 'bar', 'string');
207205
}
208206
}

0 commit comments

Comments
 (0)