/**
  * Run test
  *
  * Catch exception and decorate it with last request data
  */
 protected function runTest()
 {
     try {
         parent::runTest();
     } catch (Exception $e) {
         throw $this->_decorateExeption($e);
     }
 }
 /**
  * (non-PHPdoc)
  * @see sfPHPUnitTestCase::setUp()
  */
 public function setUp()
 {
     parent::setUp();
     $this->_user = $this->helper->makeUser();
     $account = $this->helper->makeAccount($this->_user);
     // Создаём две финцели в категории 1
     $this->helper->makeTarget($account, array('category_id' => '1', 'visible' => '1', 'done' => '1'));
     $this->helper->makeTarget($account, array('category_id' => '1', 'visible' => '1', 'done' => '1'));
     // и одну финцель в категории 2
     $this->helper->makeTarget($account, array('category_id' => '2', 'visible' => '1', 'done' => '0'));
 }
 public function setUp()
 {
     parent::setUp();
     $yamlPath = dirname(__FILE__) . '/fixtures/budget.yml';
     Doctrine::loadData($yamlPath);
 }
 /**
  * SetUp
  */
 public function setUp()
 {
     parent::setup();
     $this->form = $this->makeForm();
 }
 /**
  * (non-PHPdoc)
  * @see sfPHPUnitTestCase::tearDown()
  */
 public function tearDown()
 {
     parent::tearDown();
     unlink($this->_ymlFileName);
 }