add test-sample.php file

This commit is contained in:
scribu 2013-02-18 12:50:35 +02:00
parent 6051e68f89
commit 4790c2fb73
2 changed files with 11 additions and 0 deletions

View file

@ -217,6 +217,7 @@ class Scaffold_Command extends WP_CLI_Command {
$to_copy = array(
'phpunit.xml' => $plugin_dir,
'.travis.yml' => $plugin_dir,
'test-sample.php' => $tests_dir,
);

foreach ( $to_copy as $file => $dir ) {

10
templates/test-sample.php Normal file
View file

@ -0,0 +1,10 @@
<?php

class SampleTest extends WP_UnitTestCase {

function testSample() {
// replace this with some actual testing code
$this->assertTrue( true );
}
}