function test_set() { $region = new WPSC_Region(self::COUNTRY_ID_WITH_REGIONS, self::REGION_ID); $region->set('name', self::INVALID_REGION_NAME); // This should not set the value $this->assertEquals(self::REGION_NAME, $region->get('name')); $region = new WPSC_Region(self::COUNTRY_ID_WITH_REGIONS, self::REGION_ID); $region->set('omgwtfbbq', 'OMG'); // This should set the value $this->assertEquals('OMG', $region->get('omgwtfbbq')); $region->set('omgwtfbbq', ''); }