Skip to content

Commit 3fba364

Browse files
author
Justin Rainbow
committed
Organizing files
1 parent 2e67e2a commit 3fba364

File tree

11 files changed

+17
-10
lines changed

11 files changed

+17
-10
lines changed

bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
require 'JsonSchema.php';
4-
require 'JsonSchemaUndefined.php';
3+
require 'libs/JsonSchema.php';
4+
require 'libs/JsonSchemaUndefined.php';
55
require 'tests/BaseTestCase.php';
File renamed without changes.
File renamed without changes.

tests/cases/AdditionalPropertiesTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ public function getInvalidTests()
1616
"prop":{"type":"string"}
1717
},
1818
"additionalProperties": false
19-
}'
19+
}',
20+
null,
21+
array(
22+
array(
23+
'property' => '',
24+
'message' => 'The property additionalProp is not defined in the objTypeDef and the objTypeDef does not allow additional properties'
25+
)
26+
)
2027
),
2128
array(
2229
'{
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

validate.php renamed to webroot/tests/validate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
require_once('JsonSchema.php');
3-
require_once('JsonSchemaUndefined.php');
2+
require_once('../../libs/JsonSchema.php');
3+
require_once('../../libs/JsonSchemaUndefined.php');
44
Dbg::$quietMode = true;
55

66
if($_REQUEST['schema']) {

validator.html renamed to webroot/tests/validator.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<html>
22
<head>
3-
<script type="text/javascript" src="jsonschema.js"></script>
4-
<script type="text/javascript" src="functions.js"></script>
5-
<script type="text/javascript" src="jquery.js"></script>
6-
<script type="text/javascript" src="interface.js"></script>
7-
<link rel="stylesheet" type="text/css" href="interface.css" />
3+
<script type="text/javascript" src="../js/jsonschema.js"></script>
4+
<script type="text/javascript" src="../js/functions.js"></script>
5+
<script type="text/javascript" src="../js/jquery.js"></script>
6+
<script type="text/javascript" src="../js/interface.js"></script>
7+
<link rel="stylesheet" type="text/css" href="../css/interface.css" />
88

99
</head>
1010

0 commit comments

Comments
 (0)