コード例 #1
0
ファイル: Collection.php プロジェクト: lerre/framework
 /**
  * Load test fixture data
  * 
  * @todo suppress log noise of SQL from fixture loads
  */
 public function load()
 {
     Mad_Test_Fixture_Base::resetToLoad();
     foreach ($this->_fixtures as $fixture) {
         $fixture->load();
     }
 }
コード例 #2
0
ファイル: Fixtures.php プロジェクト: lerre/framework
 /**
  * Load fixture data to the database
  */
 protected function _loadFixtures()
 {
     Mad_Test_Fixture_Base::resetToLoad();
     foreach ($this->_fixtures as $fixture) {
         $fixture->load();
         $this->_print("loading " . $fixture->getYmlName());
     }
 }
コード例 #3
0
ファイル: BaseTest.php プロジェクト: lerre/framework
 public function testResetToLoad()
 {
     $fixture = new Mad_Test_Fixture_Base($this->_conn, 'unit_tests_more');
     $fixture->load();
     $this->assertEquals(array(), $fixture->getToLoad());
     $fixture->resetToLoad();
     $expected = array('unit_tests' => 1, 'unit_tests_more' => 1);
     $this->assertEquals($expected, $fixture->getToLoad());
 }