@@ -81,19 +81,8 @@ class CookieJarTest extends TestCase
8181 */
8282 protected $ object ;
8383
84- /**
85- * Sets up the fixture, for example, opens a network connection.
86- * This method is called before a test is executed.
87- *
88- * @return void
89- */
90- protected function setUp (): void
91- {
92- $ this ->cookieArray = array ();
93- $ this ->object = new CookieJarExposed ($ this ->cookieArray );
94-
95- $ this ->serviceUrl_1 = 'http://service.example.com/lookup/?action=search&query=username ' ;
96- $ this ->responseHeaders_1 = array ('HTTP/1.1 302 Found ' ,
84+ protected $ serviceUrl_1 = 'http://service.example.com/lookup/?action=search&query=username ' ;
85+ protected $ responseHeaders_1 = array ('HTTP/1.1 302 Found ' ,
9786 'Date: Tue, 07 Sep 2010 17:51:54 GMT ' ,
9887 'Server: Apache/2.2.3 (Red Hat) ' , 'X-Powered-By: PHP/5.1.6 ' ,
9988 'Set-Cookie: SID=k1jut1r1bqrumpei837kk4jks0; path=/ ' ,
@@ -104,8 +93,19 @@ protected function setUp(): void
10493 'Content-Length: 525 ' , 'Connection: close ' ,
10594 'Content-Type: text/html; charset=UTF-8 ' ,
10695 );
107- $ this ->serviceUrl_1b = 'http://service.example.com/lookup/?action=search&query=another_username ' ;
108- $ this ->serviceUrl_1c = 'http://service.example.com/make_changes.php ' ;
96+ protected $ serviceUrl_1b = 'http://service.example.com/lookup/?action=search&query=another_username ' ;
97+ protected $ serviceUrl_1c = 'http://service.example.com/make_changes.php ' ;
98+
99+ /**
100+ * Sets up the fixture, for example, opens a network connection.
101+ * This method is called before a test is executed.
102+ *
103+ * @return void
104+ */
105+ protected function setUp (): void
106+ {
107+ $ cookieArray = array ();
108+ $ this ->object = new CookieJarExposed ($ cookieArray );
109109
110110 // Verify that there are no cookies to start.
111111 $ this ->assertEquals (
0 commit comments