<NME> TestSampleSingleClass.php
<BEF> <?php
/**
 * File header here
 *
 * @author Ralph Schindler <ralph.schindler@zend.com>
 */

namespace ZendTest\Code\Generator\TestAsset;

/**
 * class docblock
 */
class TestSampleSingleClass
{

    /**
     * Enter description here...
     *
     * @return bool
     */
    public function someMethod()
    {
        /* test test */
    }

}

<MSG> add test for copyMethodSignature

<DFF> @@ -23,4 +23,21 @@ class TestSampleSingleClass
         /* test test */
     }
 
+    /**
+     * Enter description here...
+     *
+     * @return bool
+     */
+    protected function withParamsAndReturnType(
+        $mixed,
+        array $array,
+        callable $callable,
+        string $string = null,
+        iterable $iterable = [],
+        ?int $int = 0
+    ): bool {
+        /* test test */
+        return true;
+    }
+
 }

add test for copyMethodSignature