]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/RendererMockTrait.php
BBCode - fixed syntax error
[friendica.git] / tests / Util / RendererMockTrait.php
index 1fe3bd97dc1d0cb06fdc240384db6abd656d0b6e..b12327f49cf0de18345fc9d926e3ec5d880702e4 100644 (file)
@@ -18,6 +18,13 @@ trait RendererMockTrait
         */
        private $rendererMock;
 
+       /**
+        * Mocking the method 'Renderer::getMarkupTemplate()'
+        *
+        * @param string $templateName The name of the template which should get
+        * @param string $return the return value of the mock (should be defined to have it later for followUp use)
+        * @param null|int $times How often the method will get used
+        */
        public function mockGetMarkupTemplate($templateName, $return = '', $times = null)
        {
                if (!isset($this->rendererMock)) {
@@ -31,6 +38,14 @@ trait RendererMockTrait
                        ->andReturn($return);
        }
 
+       /**
+        * Mocking the method 'Renderer::replaceMacros()'
+        *
+        * @param string $template The template to use (normally, it is the mock result of 'mockGetMarkupTemplate()'
+        * @param array $args The arguments to pass to the macro
+        * @param string $return the return value of the mock
+        * @param null|int $times How often the method will get used
+        */
        public function mockReplaceMacros($template, $args = [], $return = '', $times = null)
        {
                if (!isset($this->rendererMock)) {