An example implementation of how to implement integration testing with PHPUnit.
Create a database and add the following users table:
CREATE TABLE users (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(255) DEFAULT NULL,
PRIMARY KEY (id)
);
Copy file tests/phpunit.xml.dist
to tests/phpunit.xml
Edit PHP environmental values:
cd tests/
phpunit .