Shopping Cart Operations > Built-in Features
how to use phpunit in a project
(1/1)
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.
Navigation
[0] Message Index
Go to full version