Sfoglia il codice sorgente

Fixing test-skipped messages for Zend_Queue_Adapter_Activemq tests; related to ZF-7948

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23511 44c647ce-9c0f-0410-b52a-842ac1e357ba
mjh_ca 15 anni fa
parent
commit
6d4b7fc48e

+ 1 - 0
tests/TestConfiguration.php.dist

@@ -570,6 +570,7 @@ define('TESTS_ZEND_MAIL_SMTP_AUTH', false);
  *
  * Selectively define the below in order to run tests for them.
  */
+define('TESTS_ZEND_QUEUE_ACTIVEMQ_ENABLED', false);
 define('TESTS_ZEND_QUEUE_ACTIVEMQ_SCHEME', false);
 define('TESTS_ZEND_QUEUE_ACTIVEMQ_HOST', false);
 define('TESTS_ZEND_QUEUE_ACTIVEMQ_PORT', false);

+ 12 - 0
tests/Zend/Queue/Adapter/ActivemqTest.php

@@ -47,6 +47,18 @@ require_once 'Zend/Queue/Adapter/AdapterTest.php';
 class Zend_Queue_Adapter_ActivemqTest extends Zend_Queue_Adapter_AdapterTest
 {
     /**
+     * Test setup
+     */
+    public function setUp()
+    {
+        if (!TESTS_ZEND_QUEUE_ACTIVEMQ_ENABLED) {
+            $this->markTestSkipped('TESTS_ZEND_QUEUE_ACTIVEMQ_ENABLED is not enabled in TestConfiguration.php');
+        }
+        parent::setUp();
+    }
+
+
+    /**
      * getAdapterName() is an method to help make AdapterTest work with any
      * new adapters
      *