Ejemplo n.º 1
0
 /**
  * Testing the getTransientAttributes method in conjunction with markTransient/markPersistent.
  *
  * @since 1.0
  */
 public function testGetTransientAttributes()
 {
     $this->assertTrue(is_array($this->person->getTransientAttributes()), 'Testing the getTransientAttributes method in conjunction with markTransient/markPersistent');
     $this->person->markTransient('URL');
     $this->assertTrue(in_array('URL', $this->person->getTransientAttributes()), 'Testing the getTransientAttributes method in conjunction with markTransient/markPersistent');
     $this->person->markPersistent('URL');
     $this->assertFalse(in_array('URL', $this->person->getTransientAttributes()), 'Testing the getTransientAttributes method in conjunction with markTransient/markPersistent');
 }