File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -89,38 +89,6 @@ public function testRefreshToken()
89
89
$ this ->assertTrue (csrfp_wrapper::checkHeader ($ _SESSION [csrfprotector::$ config ['CSRFP_TOKEN ' ]]));
90
90
}
91
91
92
- /**
93
- * test useCachedVersion()
94
- */
95
- public function testUseCachedVersion ()
96
- {
97
- if (filemtime (__DIR__ .'/../js/csrfprotector.js ' ) < filemtime (__DIR__ .'/../libs/config.php ' )) {
98
- $ this ->assertFalse (csrfprotector::useCachedVersion ());
99
- } else {
100
- $ this ->assertTrue (csrfprotector::useCachedVersion ());
101
- }
102
-
103
- $ temp = csrfprotector::$ config ['jsPath ' ];
104
- csrfprotector::$ config ['jsPath ' ] = 'some_random_name ' ;
105
- $ this ->assertFalse (csrfprotector::useCachedVersion ());
106
- csrfprotector::$ config ['jsPath ' ] = $ temp ;
107
- }
108
-
109
- /**
110
- * test for createNewJsCache()
111
- */
112
- public function testCreateNewJsCache ()
113
- {
114
- $ time1 = filemtime (__DIR__ ."/../js/csrfprotector.js " );
115
-
116
- csrfprotector::$ config ['verifyGetFor ' ] = $ this ->config ['verifyGetFor ' ];
117
- csrfprotector::createNewJsCache ();
118
-
119
- $ time2 = filemtime (__DIR__ ."/../js/csrfprotector.js " );
120
-
121
- //$this->assertTrue($time2 > $time1);
122
- $ this ->markTestSkipped ('Compare file last modified after calling function ' );
123
- }
124
92
125
93
/**
126
94
* test authorise post -> log directory exception
You can’t perform that action at this time.
0 commit comments