Skip to content

Commit fff8121

Browse files
committed
test cases for removed fucntions removed
1 parent 330f4b7 commit fff8121

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

test/csrfprotector_test.php

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -89,38 +89,6 @@ public function testRefreshToken()
8989
$this->assertTrue(csrfp_wrapper::checkHeader($_SESSION[csrfprotector::$config['CSRFP_TOKEN']]));
9090
}
9191

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-
}
12492

12593
/**
12694
* test authorise post -> log directory exception

0 commit comments

Comments
 (0)