News:

AbanteCart v1.4.2 is released.

Main Menu

how to use phpunit in a project

Started by zhaozhi, September 22, 2022, 02:14:06 AM

Previous topic - Next topic

zhaozhi

there is no phpunit in my projec. Now I want to konw how to use phpunit  in my project. I have never used phpunit

Basara

Hello.

Your question is not clear can you describe where your want to use PHP input in AbanteCart

Hayes1

Embarking on a PHPUnit journey is a great initiative! To integrate it into your project, start by installing PHPUnit via Composer, create test classes, and write test methods to validate your code. The learning curve is rewarding, and you'll soon appreciate the robust testing capabilities it brings to your development workflow.

abolabo

you can check how we use phpunit testing in the abantecart next generation.
See this file tree https://github.com/abantecart/abantecart_2.0/tree/master/abantecart/abc
You can find phpunit configuration file https://github.com/abantecart/abantecart_2.0/blob/master/abantecart/abc/phpunit.xml
Just create yours and start to create test classes.



"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -