Skip to content

Commit df43c9f

Browse files
committed
Updated to 1.1.6 version
1 parent 6b28aff commit df43c9f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/CookieTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function setUp()
5050

5151
$cookie = $this->Cookie;
5252

53-
$this->cookiePrefix = $Cookie::getCookiePrefix();
53+
$this->cookiePrefix = $cookie::getCookiePrefix();
5454
}
5555

5656
/**
@@ -72,7 +72,7 @@ public function testSetCookie()
7272
{
7373
$cookie = $this->Cookie;
7474

75-
$this->assertTrue($Cookie::set('cookie_name', 'value', 365));
75+
$this->assertTrue($cookie::set('cookie_name', 'value', 365));
7676
}
7777

7878
/**
@@ -86,7 +86,7 @@ public function testGetCookie()
8686

8787
$_COOKIE[$this->cookiePrefix . 'cookie_name'] = 'value';
8888

89-
$this->assertContains($Cookie::get('cookie_name'), 'value');
89+
$this->assertContains($cookie::get('cookie_name'), 'value');
9090
}
9191

9292
/**
@@ -103,7 +103,7 @@ public function testGetAllCookies()
103103

104104
$this->assertArrayHasKey(
105105
$this->cookiePrefix . 'cookie_name_two',
106-
$Cookie::get()
106+
$cookie::get()
107107
);
108108
}
109109

@@ -116,7 +116,7 @@ public function testGetAllCookiesNonExistents()
116116
{
117117
$cookie = $this->Cookie;
118118

119-
$this->assertFalse($Cookie::get());
119+
$this->assertFalse($cookie::get());
120120
}
121121

122122
/**
@@ -130,7 +130,7 @@ public function testPullCookie()
130130

131131
$_COOKIE[$this->cookiePrefix . 'cookie_name'] = 'value';
132132

133-
$this->assertContains($Cookie::pull('cookie_name'), 'value');
133+
$this->assertContains($cookie::pull('cookie_name'), 'value');
134134
}
135135

136136
/**
@@ -142,7 +142,7 @@ public function testPullCookieNonExistent()
142142
{
143143
$cookie = $this->Cookie;
144144

145-
$this->assertFalse($Cookie::pull('cookie_name'));
145+
$this->assertFalse($cookie::pull('cookie_name'));
146146
}
147147

148148
/**
@@ -156,7 +156,7 @@ public function testDestroyOneCookie()
156156

157157
$_COOKIE[$this->cookiePrefix . 'cookie_name'] = 'value';
158158

159-
$this->assertTrue($Cookie::destroy('cookie_name'));
159+
$this->assertTrue($cookie::destroy('cookie_name'));
160160
}
161161

162162
/**
@@ -168,7 +168,7 @@ public function testDestroyOneCookieNonExistent()
168168
{
169169
$cookie = $this->Cookie;
170170

171-
$this->assertFalse($Cookie::destroy('cookie_name'));
171+
$this->assertFalse($cookie::destroy('cookie_name'));
172172
}
173173

174174
/**
@@ -183,7 +183,7 @@ public function testDestroyAllCookies()
183183
$_COOKIE[$this->cookiePrefix . 'cookie_name_one'] = 'value';
184184
$_COOKIE[$this->cookiePrefix . 'cookie_name_two'] = 'value';
185185

186-
$this->assertTrue($Cookie::destroy());
186+
$this->assertTrue($cookie::destroy());
187187
}
188188

189189
/**
@@ -195,6 +195,6 @@ public function testDestroyAllCookiesNonExistents()
195195
{
196196
$cookie = $this->Cookie;
197197

198-
$this->assertFalse($Cookie::destroy());
198+
$this->assertFalse($cookie::destroy());
199199
}
200200
}

0 commit comments

Comments
 (0)