PHP code example of friends-of-phpspec / phpspec-requires
1. Go to this page and download the library: Download friends-of-phpspec/phpspec-requires 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/ */
friends-of-phpspec / phpspec-requires example snippets
/**
* @lic function it_will_be_tested_on_windows_operating_system_only() {
// test code here
}
/**
* @quires function customFunction
*/
public function it_will_be_tested_only_if_the_function_is_found() {
// test code here
}
/**
* @