Skip to content

Commit 8650d36

Browse files
Stub unit tests
1 parent d0dc756 commit 8650d36

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ composer.lock
99
phpunit.xml
1010
phpcs.xml
1111
.phpcs.xml
12+
.phpunit.result.cache

phpunit.xml.dist

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.8/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
backupGlobals="false"
6+
beStrictAboutCoversAnnotation="true"
7+
beStrictAboutOutputDuringTests="true"
8+
beStrictAboutTestsThatDoNotTestAnything="true"
9+
beStrictAboutTodoAnnotatedTests="true"
10+
colors="true"
11+
verbose="true">
12+
<testsuites>
13+
<testsuite name="default">
14+
<directory suffix="Test.php">tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
</phpunit>

tests/PluginCommandTest.php

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace WP_CLI\Extension\Tests;
4+
5+
use WP_CLI\Tests\TestCase;
6+
7+
class PluginCommandTest extends TestCase {
8+
public function test_sample() {
9+
$this->assertTrue( true );
10+
}
11+
}

0 commit comments

Comments
 (0)