コード例 #1
0
 protected function setUp()
 {
     parent::setUp();
     if (!extension_loaded('intl')) {
         $this->markTestSkipped('The "intl" extension is not available');
     }
 }
コード例 #2
0
    protected function setUp()
    {
        parent::setUp();

        $this->form = $this->factory->create('repeated', null, array(
            'type' => 'field',
        ));
        $this->form->setData(null);
    }
コード例 #3
0
ファイル: LocalizedTestCase.php プロジェクト: laubosslink/lab
 protected function setUp()
 {
     parent::setUp();
     if (!class_exists('Symfony\\Component\\Locale\\Locale')) {
         $this->markTestSkipped('The "Locale" component is not available');
     }
     if (!extension_loaded('intl')) {
         $this->markTestSkipped('The "intl" extension is not available');
     }
 }
コード例 #4
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->provider = null;
 }
コード例 #5
0
ファイル: CsrfTypeTest.php プロジェクト: nacef/symfony
    protected function setUp()
    {
        parent::setUp();

        $this->provider = $this->getMock('Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface');
    }