PHP code example of internations / testing-component
1. Go to this page and download the library: Download internations/testing-component 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/ */
internations / testing-component example snippets
use InterNations\Component\Testing\AbstractTestCase;
class MyTest extends AbstractTestCase
{
}
use InterNations\Component\Testing\AccessTrait;
class MyTest ...
{
use AccessTrait;
public function testSomething()
{
$this->setNonPublicProperty($this->sut, 'privateProperty', 'value');
$this->callNonPublicMethod($this->sut, 'protectedMethod', ['arg1', 'arg2']);
}
}