PHP code example of fooman / phpunit-assert-bridge

1. Go to this page and download the library: Download fooman/phpunit-assert-bridge 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/ */

    

fooman / phpunit-assert-bridge example snippets




use Fooman\PhpunitAssertBridge\CompatAssert;

class MyTestCaseAssertion extends extends \Magento\Mtf\Constraint\AbstractConstraint
{

    public function processAssert(
    	...
	) {
    	CompatAssert::assertEquals('expected', $actual);			
	}

}