Generated Testing Suite

Generated Testing Suite

Next, let us try the generated testing suite. To use the generated testing classes, we can set the database environment using in-memory database SQLite. Open phpunit.xml. Add two lines below on the env :

1
2
3
4
5
6
7
8
<phpunit>
    <!-- ..... -->
    <php>
        <!-- ..... -->
        <server name="DB_CONNECTION" value="sqlite"/>
        <server name="DB_DATABASE" value=":memory:"/>
    </php>
</phpunit>

Then run PHPUnit

1
$ vendor/bin/phpunit

All tests should be passed.

Generated Testing Suite on Simple CRUD Generator

What's on this Page