Esempio n. 1
0
 /**
  * Test __toString
  */
 public function testToString()
 {
     $project = new Phprojekt_Project(array('db' => $this->sharedFixture));
     $dbField = new Phprojekt_DatabaseManager_Field($project->getInformation(), 'parent', 'testvalue');
     ob_start();
     echo $dbField;
     $stringValue = ob_get_contents();
     ob_end_clean();
     $this->assertEquals('testvalue', $stringValue);
 }
Esempio n. 2
0
 /**
  * Test __toString
  */
 public function testToString()
 {
     $project = new Phprojekt_Project(array('db' => $this->sharedFixture));
     $dbField = new Phprojekt_DatabaseManager_Field($project->getInformation(), 'parent', 'testvalue');
     $this->assertEquals('testvalue', $dbField->value);
 }