test/snac/data/ConstellationTest.php
/**
     * Test that non-empty constellations are not equal
     */
Test that non-empty constellations are not equal
Test that non - empty constellations are not equal
public function testNotEqualsNonEmpty() {
        $c1 = new \snac\data\Constellation();
        $c2 = new \snac\data\Constellation();
        $jsonIn = file_get_contents("test/snac/data/json/constellation_test.json");
        $c1->fromJSON($jsonIn);
        $c2->fromJSON($jsonIn);
        $date = new \snac\data\SNACDate();
        $c2->addDate($date);
        $this->assertFalse($c1->equals($c2));
        $this->assertFalse($c1->equals($c2, false));
        $this->assertFalse($c2->equals($c1));
        $this->assertFalse($c2->equals($c1, false));
    }
public function testNotEqualsNonEmpty ( ) { $ c1 = new \ snac \ data \ Constellation ( ) ; $ c2 = new \ snac \ data \ Constellation ( ) ; $ jsonIn = file_get_contents ( " test/snac/data/json/constellation_test.json " ) ; $ c1 -> fromJSON ( $ jsonIn ) ; $ c2 -> fromJSON ( $ jsonIn ) ; $ date = new \ snac \ data \ SNACDate ( ) ; $ c2 -> addDate ( $ date ) ; $ this -> assertFalse ( $ c1 -> equals ( $ c2 ) ) ; $ this -> assertFalse ( $ c1 -> equals ( $ c2 , false ) ) ; $ this -> assertFalse ( $ c2 -> equals ( $ c1 ) ) ; $ this -> assertFalse ( $ c2 -> equals ( $ c1 , false ) ) ; }
Test that non-empty constellations are not equal
Test that non - empty constellations are not equal