]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/template/producer/test_units/class_XmlCruncherTestUnitTemplateEngine.php
Added parameter 'key' to encryption methods to allow own keys
[hub.git] / application / hub / main / template / producer / test_units / class_XmlCruncherTestUnitTemplateEngine.php
index 3fadf06bc9d01d648057bba4c478bfbc179b0f33..968220f63fc34d6039b91c8166c07c3c049cd38d 100644 (file)
@@ -36,10 +36,12 @@ class XmlCruncherTestUnitTemplateEngine extends BaseTemplateEngine implements Co
        private $subNodes = array(
                'meta-data',
                'global-project-identifier',
+               'test-unit-created',
                'cipher',
                'cipher-function',
                'cipher-name',
                'unprocessed-data',
+               'encrypted-message',
                'cruncher-key-list',
                'cruncher-key',
                'key-id',
@@ -303,6 +305,26 @@ class XmlCruncherTestUnitTemplateEngine extends BaseTemplateEngine implements Co
                $this->getStackerInstance()->popNamed('cruncher_test_unit');
        }
 
+       /**
+        * Starts the test-unit-created
+        *
+        * @return      void
+        */
+       private function startTestUnitCreated () {
+               // Push the node name on the stacker
+               $this->getStackerInstance()->pushNamed('cruncher_test_unit', 'test-unit-created');
+       }
+
+       /**
+        * Finishes the test-unit-created
+        *
+        * @return      void
+        */
+       private function finishTestUnitCreated () {
+               // Pop the last entry
+               $this->getStackerInstance()->popNamed('cruncher_test_unit');
+       }
+
        /**
         * Starts the cipher
         *
@@ -383,6 +405,26 @@ class XmlCruncherTestUnitTemplateEngine extends BaseTemplateEngine implements Co
                $this->getStackerInstance()->pushNamed('cruncher_test_unit', 'unprocessed-data');
        }
 
+       /**
+        * Starts the encrypted-message
+        *
+        * @return      void
+        */
+       private function startEncryptedMessage () {
+               // Push the node name on the stacker
+               $this->getStackerInstance()->pushNamed('cruncher_test_unit', 'encrypted-message');
+       }
+
+       /**
+        * Finishes the encrypted-message
+        *
+        * @return      void
+        */
+       private function finishEncryptedMessage () {
+               // Pop the last entry
+               $this->getStackerInstance()->popNamed('cruncher_test_unit');
+       }
+
        /**
         * Starts the cruncher-key-list
         *