We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Links to unit tests

Hi,

Recently I was viewing issues/pull requests lists and I spotted that a lot of tickets have been/are caused because people doesn't know how to use some function/class. I was thinking that maybe it would be worth to show unit tests sources somewhere on website? For example by a link on class' reference pages.

Second thing is something that I've done myself - tried to instantiate an abstract class(not because I wasn't aware that it's impossible with PHP) because reference doesn't indicate is class an abstract(example: https://docs.phalcon.io/en/latest/api/Phalcon_Forms_Element.html). Maybe it would be worth to add 'abstract' prefix to abstract classes listed below the docs?

I would like to know your thoughts.

Thanks,

Kamil



98.9k

The API is generated using this script: https://github.com/phalcon/docs/blob/master/scripts/gen-api.php, maybe someone could improve it to implement such functionality