public function testChangeState()
 {
     $property = false;
     $this->assertTrue(ModularAuthUtility::disableState($property, true));
     $this->assertIdentical($property, true);
     $property = false;
     $this->assertTrue(ModularAuthUtility::disableState($property, 'before'));
     $this->assertIdentical($property, 'before');
     $property = false;
     $this->assertTrue(ModularAuthUtility::disableState($property, 'after'));
     $this->assertIdentical($property, 'after');
     $property = false;
     $this->assertFalse(ModularAuthUtility::enableState($property, true));
     $this->assertIdentical($property, false);
     $property = false;
     $this->assertFalse(ModularAuthUtility::enableState($property, 'before'));
     $this->assertIdentical($property, false);
     $property = false;
     $this->assertFalse(ModularAuthUtility::enableState($property, 'after'));
     $this->assertIdentical($property, false);
     $property = 'before';
     $this->assertTrue(ModularAuthUtility::disableState($property, true));
     $this->assertIdentical($property, true);
     $property = 'before';
     $this->assertFalse(ModularAuthUtility::disableState($property, 'before'));
     $this->assertIdentical($property, 'before');
     $property = 'before';
     $this->assertTrue(ModularAuthUtility::disableState($property, 'after'));
     $this->assertIdentical($property, true);
     $property = 'before';
     $this->assertTrue(ModularAuthUtility::enableState($property, true));
     $this->assertIdentical($property, false);
     $property = 'before';
     $this->assertTrue(ModularAuthUtility::enableState($property, 'before'));
     $this->assertIdentical($property, false);
     $property = 'before';
     $this->assertFalse(ModularAuthUtility::enableState($property, 'after'));
     $this->assertIdentical($property, 'before');
     $property = 'after';
     $this->assertTrue(ModularAuthUtility::disableState($property, true));
     $this->assertIdentical($property, true);
     $property = 'after';
     $this->assertTrue(ModularAuthUtility::disableState($property, 'before'));
     $this->assertIdentical($property, true);
     $property = 'after';
     $this->assertFalse(ModularAuthUtility::disableState($property, 'after'));
     $this->assertIdentical($property, 'after');
     $property = 'after';
     $this->assertTrue(ModularAuthUtility::enableState($property, true));
     $this->assertIdentical($property, false);
     $property = 'after';
     $this->assertFalse(ModularAuthUtility::enableState($property, 'before'));
     $this->assertIdentical($property, 'after');
     $property = 'after';
     $this->assertTrue(ModularAuthUtility::enableState($property, 'after'));
     $this->assertIdentical($property, false);
     $property = true;
     $this->assertFalse(ModularAuthUtility::disableState($property, true));
     $this->assertIdentical($property, true);
     $property = true;
     $this->assertFalse(ModularAuthUtility::disableState($property, 'before'));
     $this->assertIdentical($property, true);
     $property = true;
     $this->assertFalse(ModularAuthUtility::disableState($property, 'after'));
     $this->assertIdentical($property, true);
     $property = true;
     $this->assertTrue(ModularAuthUtility::enableState($property, true));
     $this->assertIdentical($property, false);
     $property = true;
     $this->assertTrue(ModularAuthUtility::enableState($property, 'before'));
     $this->assertIdentical($property, 'after');
     $property = true;
     $this->assertTrue(ModularAuthUtility::enableState($property, 'after'));
     $this->assertIdentical($property, 'before');
 }