protected function _initFixture(array $options = array())
 {
     $this->_fixture = sfPhpunitFixture::build($this, $options);
 }
 /**
  * Load fintures
  * 
  * @param array|string $fixteres
  * @return bool|string - true if all OK OR error message if somthing wrong
  */
 public function loadFixture($fixtures = '', $returnText = false)
 {
     $loader = sfPhpunitFixture::build($this, array('fixture_ext' => ''));
     $loader->clean();
     $return = true;
     try {
         $loader->loadSymfony($fixtures);
     } catch (Exception $e) {
         $return = $e->getMessage();
     }
     return $returnText && true === $return ? 'Fixtures loaded successful.' : $return;
 }
 protected function _initFixture(array $options = array())
 {
     $this->_fixture = new sfPhpunitSeleniumRemouteFixtureDecorator(sfPhpunitFixture::build($this, $options));
 }
 protected function _initFixture(array $options = array())
 {
     $options['fixture_ext'] = '.yml';
     // TODO move it
     $this->_fixture = sfPhpunitFixture::build($this, $options);
 }
Exemplo n.º 5
0
 public function __construct(sfBasePhpunitTestCase $case, array $options)
 {
     parent::__construct($case, $options);
 }