PHP code example of silpo-tech / lib-test-utilities

1. Go to this page and download the library: Download silpo-tech/lib-test-utilities library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

silpo-tech / lib-test-utilities example snippets


protected function setUp(): void
{
    Factory::getInstance()->register(
        new IgnoreDynamicFieldsComparator(classes: [Recurring::class], properties: [
            'id',
            'createdAt',
            'updatedAt',
        ]),
    );
}

protected function tearDown(): void
{
    parent::tearDown();
    Factory::getInstance()->reset();
}