aboutsummaryrefslogtreecommitdiff
path: root/public/test.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/test.php')
-rw-r--r--public/test.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/public/test.php b/public/test.php
index 7e24cd6..50ff4b1 100644
--- a/public/test.php
+++ b/public/test.php
@@ -18,33 +18,9 @@ $art = new Art2(['id' => 'rr']);
$art->reset();
$art->hydrate((['description' => 'fdsfs', 'secure' => 0, 'render' => $render2]));
-var_dump($art);
-$artencoded = json_encode($art);
-var_dump($artencoded);
-class Person
-{
- public $id;
- public $name;
- public $table = ['coucou', 'lol', 'chouette'];
- public $date;
-
- public function __construct(array $data)
- {
- $this->id = $data['id'];
- $this->name = $data['name'];
- $this->date = new DateTimeImmutable();
- }
-}
-
-$person = new Person(array('id' => 1, 'name' => 'Amir'));
-$jsonperson = json_encode($person);
-
-var_dump($jsonperson);
-
-var_dump(json_decode($jsonperson));