Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
Clean up coding standards mistakes in unit test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Arthur Moore committed Jun 18, 2014
1 parent 0e63871 commit 94e7bae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @since 1.0.2
*/
if( function_exists( 'xdebug_disable' ) ) {
if ( function_exists( 'xdebug_disable' ) ) {
xdebug_disable();
} // end if xdebug_disable check

Expand All @@ -41,9 +41,9 @@
*
* @since 1.0.2
*/
echo "Subtitles WordPress Plugin Unit Testing Suite v1.0.2" . PHP_EOL;
echo "Author: Philip Arthur Moore" . PHP_EOL;
echo "License: GNU General Public License v2 or later" . PHP_EOL . PHP_EOL;
echo 'Subtitles WordPress Plugin Unit Testing Suite v1.0.2' . PHP_EOL;
echo 'Author: Philip Arthur Moore' . PHP_EOL;
echo 'License: GNU General Public License v2 or later' . PHP_EOL . PHP_EOL;

/**
* Define Subtitles plugin directory.
Expand Down Expand Up @@ -82,7 +82,7 @@
*
* @since 1.0.2
*/
if( false !== getenv( 'WP_DEVELOP_DIR' ) ) {
if ( false !== getenv( 'WP_DEVELOP_DIR' ) ) {
// functions used before loading WordPress
require getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit/includes/functions.php';
// Installs WordPress for running the tests and loads WordPress and the test libraries
Expand Down
2 changes: 1 addition & 1 deletion tests/test-unit-tests.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
class SampleTest extends WP_UnitTestCase {
function testSample() {
function test_sample() {
// replace this with some actual testing code
$this->assertTrue( true );
}
Expand Down

0 comments on commit 94e7bae

Please sign in to comment.