Skip to content

Commit 8ed5882

Browse files
committed
updated tests and prepared the 1.1.3 release
1 parent c543c9d commit 8ed5882

File tree

14 files changed

+480
-10
lines changed

14 files changed

+480
-10
lines changed

support files/test pages/Test1.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
class foo
3+
{
4+
var $ExtensionName = "Var_Masterpiece";
5+
var $AuthorName = "Philip Reasa";
6+
var $ExtensionAbilities = array("Tree Nesting Structure", "Custimizable Data Type Coloring",
7+
"Colapse/Expand", "Automatically Run", "Run Within A Page");
8+
var $GitHub = "Contribute here: https://github.com/Rece/var_dump";
9+
var $TestAssociativeArrays = array("testing" => "It works!");
10+
var $TestBooleans = true;
11+
var $TestInts = 1;
12+
var $TestFloats = 1.004;
13+
var $TestNulls = NULL;
14+
}
15+
16+
$test1 = new foo;
17+
var_dump($test1);
18+
19+

support files/test pages/Test2.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
class foo
3+
{
4+
var $ExtensionName = "Var_Masterpiece";
5+
var $AuthorName = "Philip Reasa";
6+
var $ExtensionAbilities = array("Tree Nesting Structure", "Custimizable Data Type Coloring",
7+
"Colapse/Expand", "Automatically Run", "Run Within A Page");
8+
var $GitHub = "Contribute here: <a href=\"https://github.com/Rece/var_dump\">https://github.com/Rece/var_dump</a>";
9+
var $TestAssociativeArrays = array("testing" => "It works!");
10+
var $TestBooleans = true;
11+
var $TestInts = 1;
12+
var $TestFloats = 1.004;
13+
var $TestNulls = NULL;
14+
}
15+
16+
$test2 = new foo;
17+
var_dump($test2);
18+
19+

support files/test pages/Test3.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
$test3 = [
3+
"key 1" => "value1",
4+
"key 2" => "string with \"quote\" and new lines \n testing...",
5+
"value3",
6+
"key 4" => "value4",
7+
"5 lets get tough" => "\"\n\n\"\"\"\nthere should be something here",
8+
"6 empty string" => "",
9+
"7 single new line" => "\n",
10+
"8 single quote" => "\"",
11+
"9 new line + single space" => "\n ",
12+
"key 10" => "I hope all of this works"
13+
];
14+
var_dump($test3);

support files/test pages/Test4.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- saved from url=(0048)http://pages.cs.wisc.edu/~preasa/hide2.index.php -->
2+
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head><body>
3+
array(2) {
4+
["value has html"]=>
5+
string(20) "<a href='#'>link</a>"
6+
["<a href='#'>key</a>"]=>
7+
string(12) "hey has html"
8+
}
9+
</body></html>

support files/test pages/Test4.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
$test4 = [
3+
"value has html" => "<a href='#'>link</a>",
4+
"<a href='#'>key</a>" => "hey has html",
5+
];
6+
var_dump($test4);

support files/test pages/Test5.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- saved from url=(0048)http://pages.cs.wisc.edu/~preasa/hide2.index.php -->
2+
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head><body>
3+
array(3) {
4+
["first line new line (should not be empty)"]=>
5+
string(11) "
6+
Not empty!"
7+
["Key has new
8+
line"]=>
9+
string(33) "Key should be: "Key has new line""
10+
["last line has new line (should not be empty)"]=>
11+
string(11) "
12+
Not empty!"
13+
}
14+
</body></html>

support files/test pages/Test5.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
$test5 = [
3+
"first line new line (should not be empty)" => "\nNot empty!",
4+
"Key has new \n line" => "Key should be: \"Key has new line\"",
5+
"last line has new line (should not be empty)" => "\nNot empty!"
6+
];
7+
var_dump($test5);

0 commit comments

Comments
 (0)