AbanteCart Community

Shopping Cart Operations => Built-in Features => Topic started by: zhaozhi on September 22, 2022, 02:14:06 AM

Title: how to use phpunit in a project
Post by: zhaozhi on September 22, 2022, 02:14:06 AM
there is no phpunit in my projec. Now I want to konw how to use phpunit  in my project. I have never used phpunit
Title: Re: how to use phpunit in a project
Post by: Basara on September 22, 2022, 07:16:47 AM
Hello.

Your question is not clear can you describe where your want to use PHP input in AbanteCart
Title: Re: how to use phpunit in a project
Post by: Hayes1 on December 30, 2023, 05:56:21 AM
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.
Title: Re: how to use phpunit in a project
Post by: abolabo on December 31, 2023, 11:41:35 AM
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.