PHP code example of automattic / wordbless
1. Go to this page and download the library: Download automattic/wordbless 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/ */
automattic / wordbless example snippets
\WorDBless\Load::load();
class My_Tests extends \WorDBless\BaseTestCase {
public function test_add() {
add_option( 'test', 123 );
$this->assertEquals( 123, get_option( 'test' ) );
}
}