PHP code example of jstewmc / test-case

1. Go to this page and download the library: Download jstewmc/test-case 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/ */

    

jstewmc / test-case example snippets


use Jstewmc\TestCase\TestCase;

class Test extends TestCase
{
    public function testFoo()
    {
        $class = new class { private $foo = 'bar'; };
        
        $this->assertEquals('bar', $this->getProperty('foo', $class));
        
        return;
    }    
}