Pull to refresh
54
0

Пользователь

Send message
Зачем весь код метода? Doc-тест задается в комментарии. Получить комментарий можно просто:
<?php
class A {
    /**
     * Inline test example
     * @assert (2,2) == 4
     */
     private function _add($a,$b) {
          return $a + $b;
     }
}

$refl    = new ReflectionClass('A');
$comment = $refl->getMethod('_add')->getDocComment();
echo $comment;

Information

Rating
Does not participate
Location
Россия
Date of birth
Registered
Activity