Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 9e13e74

Browse files
committed
Added test
1 parent 2681347 commit 9e13e74

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/CsrfTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ public function testCanValidateHasheWithoutId()
267267
$this->assertTrue($this->validator->isValid($bareToken));
268268
}
269269

270+
public function testCanRejectArrayValues()
271+
{
272+
$this->assertFalse($this->validator->isValid([]));
273+
}
274+
270275
public function fakeValuesDataProvider()
271276
{
272277
return [
@@ -277,7 +282,7 @@ public function fakeValuesDataProvider()
277282
['fakeTokenId'],
278283
[md5(uniqid()) . '-'],
279284
[md5(uniqid()) . '-' . md5(uniqid())],
280-
['-' . md5(uniqid())]
285+
['-' . md5(uniqid())],
281286
];
282287
}
283288

0 commit comments

Comments
 (0)