1. Go to this page and download the library: Download tribeos/flight-php-swagger 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/ */
/* tests/unit/SampleTest.php */
use PHPUnit\Framework\TestCase;
class SampleTest extends TestCase {
public function testThisIsASampleTest() {
$this->assertTrue(true);
}
}
xml
<filter>
<whitelist>
<!-- The name of the folder to use for code coverage -->
<directory suffix=".php">app/</directory>
<exclude>
<!-- Files/folders excluded from code coverage (PHP files without testable methods). Edit according to your project needs. -->
<directory suffix=".php">app/models</directory>
<directory suffix=".php">app/routes</directory>
</exclude>
</whitelist>
</filter>
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.