Skip to content

Commit

Permalink
Fix test function description and add assertions on Exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Mar 22, 2017
1 parent 3278ad2 commit 870ca78
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/TestCase/Http/Cookie/CookieTest.php
Expand Up @@ -142,6 +142,7 @@ public function testWithValue()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `string` but `integer` given
*/
public function testWithDomainInvalidConstructor()
{
Expand All @@ -153,6 +154,7 @@ public function testWithDomainInvalidConstructor()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `string` but `array` given
*/
public function testWithDomainInvalid()
{
Expand All @@ -179,6 +181,7 @@ public function testWithDomain()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `string` but `array` given
*/
public function testWithPathInvalid()
{
Expand All @@ -191,6 +194,7 @@ public function testWithPathInvalid()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `string` but `integer` given
*/
public function testWithPathInvalidConstructor()
{
Expand All @@ -216,6 +220,7 @@ public function testWithPath()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `bool` but `string` given
*/
public function testWithHttpOnlyInvalidConstructor()
{
Expand All @@ -227,6 +232,7 @@ public function testWithHttpOnlyInvalidConstructor()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `bool` but `string` given
*/
public function testWithHttpOnlyInvalid()
{
Expand All @@ -253,6 +259,7 @@ public function testWithHttpOnly()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `bool` but `string` given
*/
public function testWithSecureInvalidConstructor()
{
Expand All @@ -264,6 +271,7 @@ public function testWithSecureInvalidConstructor()
*
* @return void
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage The provided arg must be of type `bool` but `string` given
*/
public function testWithSecureInvalid()
{
Expand All @@ -272,7 +280,7 @@ public function testWithSecureInvalid()
}

/**
* Test setting httponly in cookies
* Test setting secure in cookies
*
* @return void
*/
Expand Down

0 comments on commit 870ca78

Please sign in to comment.