We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a05eff commit 1cebb4fCopy full SHA for 1cebb4f
Tests/CookieTest.php
@@ -197,12 +197,10 @@ public function testIsExpired()
197
$this->assertFalse($cookie->isExpired());
198
}
199
200
- /**
201
- * @expectedException \UnexpectedValueException
202
- * @expectedExceptionMessage The cookie expiration time "string" is not valid.
203
- */
204
public function testConstructException()
205
{
+ $this->expectException('UnexpectedValueException');
+ $this->expectExceptionMessage('The cookie expiration time "string" is not valid.');
206
$cookie = new Cookie('foo', 'bar', 'string');
207
208
0 commit comments