PHP code example of aedart / testing-gst

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

    

aedart / testing-gst example snippets


class MyTraitTest extends Test
{

    use \Aedart\Testing\GST\GetterSetterTraitTester;

    // ... test setup not shown ... //

    /**
     * @test
     */
    public function canTestAllOfTraitsMethods()
    {
        $this->assertGetterSetterTraitMethods(
            PersonNameTrait::class,
            $this->faker->unique()->name,
            $this->faker->unique()->name
        );
    }
}