PHP code example of philippwitzmann / testing

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

    

philippwitzmann / testing example snippets




use PhilippWitzmann\Testing\TestCase;

class SomeClassTest extends TestCase
{
    protected function setUpTest()
    {
        // Do Initialisation for your mocks and subject here
    }
    
    protected function tearDownTest()
    {
        // Revert any leftovers from your tests
    }
    
    public function testSomething()
    {
        $this->assertTrue(true);
    }
}