When I try to run the command phpunit
from the command line, I received the following error:
Class 'DOMDocument' not found
This was not happening before. I remember having to remove and reinstall PHP.
What can cause this error, since DomDocument
is a native PHP class?
Note: I am using the Ubuntu operating system.