Skip to content

Commit 2a458cd

Browse files
committed
Add for "evil" manifest
1 parent dbab516 commit 2a458cd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

phpunit.xml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<directory>./tests/Iiif/Context</directory>
77
<directory>./tests/Iiif/Presentation/Common/Model</directory>
88
<directory>./tests/Iiif/Presentation/V1/Model</directory>
9+
<directory>./tests/Iiif/Presentation/V2</directory>
910
<directory>./tests/Iiif/Presentation/V2/Model</directory>
1011
<directory>./tests/Iiif/Presentation/V3/Model/Resources</directory>
1112
<directory>./tests/Iiif/Services</directory>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
use PHPUnit\Framework\TestCase;
4+
use Ubl\Iiif\Tools\IiifHelper;
5+
6+
/**
7+
* test case.
8+
*/
9+
class ForkBombTest extends TestCase {
10+
11+
public function testForkBomb() {
12+
$collection = IiifHelper::loadIiifResource("http://evil-manifests.davidnewbury.com/iiif/garden/fork.json");
13+
self::assertNotNull($collection);
14+
}
15+
16+
}
17+

0 commit comments

Comments
 (0)