PHP code example of wp-content-framework / test
1. Go to this page and download the library: Download wp-content-framework/test 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/ */
wp-content-framework / test example snippets
namespace Example_Plugin\Classes\Tests;
if ( ! defined( 'EXAMPLE_PLUGIN' ) ) {
exit;
}
/**
* Class Sample
* @package Example_Plugin\Classes\Tests
*/
class Sample extends \WP_Framework\Classes\Tests\Base {
public function test_sample1() {
$this->assertEquals( 2, 1 + 1 );
}
public function test_sample2() {
$this->assertEquals( 1, 1 + 1 );
}
}