PHP code example of sanmai / phpunit-legacy-adapter
1. Go to this page and download the library: Download sanmai/phpunit-legacy-adapter 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/ */
sanmai / phpunit-legacy-adapter example snippets
public function __call($method, $args)
{
if ($method === 'assertStringContainsString') {
$this->assertContains(...$args);
}
if ($method === 'assertIsBool') {
$this->assertTrue(\is_bool($args[0]));
}
if ($method === 'expectExceptionMessageRegExp') {
$this->expectExceptionMessageMatches(...$args);
}
throw new \InvalidArgumentException();
}