Exemplo n.º 1
0
 public function testLoadFromDataIsSameAsLoadFromFile()
 {
     $profile = new Profile(array('projectProfileFile' => $this->_projectProfileFile));
     $profile->setAttribute('projectDirectory', $this->_projectDirectory);
     $profile->loadFromFile();
     $profile2 = new Profile();
     $profile2->setAttribute('profileData', file_get_contents($this->_projectProfileFile));
     $profile2->setAttribute('projectDirectory', $this->_projectDirectory);
     $profile2->loadFromData();
     $this->assertEquals($profile->__toString(), $profile2->__toString());
 }