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