public function testComplex()
 {
     $jsonArray = array(DATA_PATH . 'example.address1.json', DATA_PATH . 'example.address2.json', DATA_PATH . 'facebook-data.json');
     foreach ($jsonArray as $jsonUrl) {
         $sUT = new JSONStringParser();
         $validator = new Validator();
         $json = file_get_contents($jsonUrl);
         $results = $sUT->parse($json);
         $this->assertInstanceOf('JSONSchema\\Structure\\Schema', $results);
         $validator->check(json_decode($json), $results->toObject());
         $this->assertTrue($validator->isValid(), "\n Error : " . json_encode($validator->getErrors()) . "\njson : " . $json . "\nschema : " . $results->toString());
     }
 }
 public function testIsNotValid()
 {
     $sUT = new JSONStringParser();
     $this->assertEquals(false, $sUT->isValidType(55));
 }