Forum


Replies: 2   Views: 2518
Laravel phpunit with phpdocx
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by harman.devp  · 12-07-2017 - 12:44

Hi,

My client has purchased the advanced phpdocx package and I have integrated it in a Laravel 5.3 application. I am writing phpunit tests to test my API. However, the API tests are failing in the part where I'm using Phpdocx. Is this a common issue? Do I have to do anything additional to ensure that my tests are running?

Posted by admin  · 12-07-2017 - 14:06

Hello,

No, there's no problem to test phpdocx using phpunit (with Laravel, Symfony or any other framework or CMS). You just need to load the library in your test environment and use it.

Although it's not a common question, we move it to the dev team to consider writing an article on the cookbook.

Regards.

Posted by harman.devp  · 13-07-2017 - 08:30

Ok thanks! Maybe the issue is that this library was not installed using composer so it is not simulated in my test environment. Yes an article on this would be greatly appreciated.