Skip to content

Instantly share code, notes, and snippets.

@mAAdhaTTah
Created February 16, 2015 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mAAdhaTTah/b266967dd649351cf716 to your computer and use it in GitHub Desktop.
Save mAAdhaTTah/b266967dd649351cf716 to your computer and use it in GitHub Desktop.
Default Classes for WP-Gistpen
<?php
namespace WP_Gistpen;
/**
* This is the class description.
*
* @package WP_Gistpen
* @author James DiGioia <jamesorodig@gmail.com>
* @link http://jamesdigioia.com/wp-gistpen/
* @since [current version]
*/
class Boilerplate {
/**
* The ID of this plugin.
*
* @since [current version]
* @access private
* @var string $plugin_name The ID of this plugin.
*/
private $plugin_name;
/**
* The version of this plugin.
*
* @since [current version]
* @access private
* @var string $version The current version of this plugin.
*/
private $version;
/**
* Initialize the class and set its properties.
*
* @since [current version]
* @var string $plugin_name The name of this plugin.
* @var string $version The version of this plugin.
*/
public function __construct( $plugin_name, $version ) {
$this->plugin_name = $plugin_name;
$this->version = $version;
}
}
<?php
class WP_Gistpen_Sample_Test extends WP_Gistpen_UnitTestCase {
function setUp() {
parent::setUp();
}
function test_sample() {
// replace this with some actual testing code
$this->markTestIncomplete( "This test is incomplete." );
}
function tearDown() {
parent::tearDown();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment