test/snac/data/ConstellationTest.php
/**
     * Test Empty Check
     *
     * Tests whether the isEmpty function works on both an empty and non-empty Constellation
     */
Test Empty Check
Tests whether the isEmpty function works on both an empty and non-empty Constellation
Test Empty Check Tests whether the isEmpty function works on both an empty and non - empty Constellation
public function testConstellationEmpty() {
        $identity = new \snac\data\Constellation();
        $this->assertTrue($identity->isEmpty(), "Empty Constellation was not determined to be empty.");
        $jsonIn = file_get_contents("test/snac/data/json/constellation_test2.json");
        $arrayIn = json_decode($jsonIn, true);
        $identity->fromJSON($jsonIn);
        $this->assertFalse($identity->isEmpty(), "Non-empty Constellation was determined to be empty.");
    }
public function testConstellationEmpty ( ) { $ identity = new \ snac \ data \ Constellation ( ) ; $ this -> assertTrue ( $ identity -> isEmpty ( ) , " Empty Constellation was not determined to be empty. " ) ; $ jsonIn = file_get_contents ( " test/snac/data/json/constellation_test2.json " ) ; $ arrayIn = json_decode ( $ jsonIn , true ) ; $ identity -> fromJSON ( $ jsonIn ) ; $ this -> assertFalse ( $ identity -> isEmpty ( ) , " Non-empty Constellation was determined to be empty. " ) ; }
Test Empty Check
 Tests whether the isEmpty function works on both an empty and non-empty Constellation
Test Empty Check Tests whether the isEmpty function works on both an empty and non - empty Constellation