PHP code example of lion / test

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

    

lion / test example snippets




declare(strict_types=1);

namespace Tests;

use Lion\Test\Test;
use PHPUnit\Framework\Attributes\Test as Testing;

class ExampleTest extends Test
{
    protected function setUp(): void
    {
        $this->initReflection(new ExampleController());
    }

    #[Testing]
    public function example(): void
    {
        $this->assertPropertyValue('id', 1);
    }
}