test/snac/data/ConstellationTest.php
/**
     * Test that trying to read garbage instead of JSON results in not importing any data
     */
Test that trying to read garbage instead of JSON results in not importing any data
Test that trying to read garbage instead of JSON results in not importing any data
public function testJSONGarbage() {
        $identity = new \snac\data\Constellation();
        $jsonOrig = $identity->toJSON();
        $identity->fromJSON("Garbage, not JSON");
        $this->assertEquals($jsonOrig, $identity->toJSON());
    }
public function testJSONGarbage ( ) { $ identity = new \ snac \ data \ Constellation ( ) ; $ jsonOrig = $ identity -> toJSON ( ) ; $ identity -> fromJSON ( " Garbage, not JSON " ) ; $ this -> assertEquals ( $ jsonOrig , $ identity -> toJSON ( ) ) ; }
Test that trying to read garbage instead of JSON results in not importing any data
Test that trying to read garbage instead of JSON results in not importing any data