Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Commits
50d4a278
Verified
Commit
50d4a278
authored
1 year ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
refactor: update phpunit setup and example test
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
866f2500
No related branches found
No related tags found
1 merge request
!45
update setup
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
phpunit-integration.xml
+1
-1
1 addition, 1 deletion
phpunit-integration.xml
phpunit-unit.xml
+1
-1
1 addition, 1 deletion
phpunit-unit.xml
tests/unit/ExampleTest.php
+2
-2
2 additions, 2 deletions
tests/unit/ExampleTest.php
with
4 additions
and
4 deletions
phpunit-integration.xml
+
1
−
1
View file @
50d4a278
...
...
@@ -2,7 +2,7 @@
backupGlobals=
"false"
>
<testsuites>
<testsuite>
<testsuite
name=
"Integration"
>
<directory
prefix=
"test-"
suffix=
".php"
>
./tests/integration
</directory>
</testsuite>
</testsuites>
...
...
This diff is collapsed.
Click to expand it.
phpunit-unit.xml
+
1
−
1
View file @
50d4a278
<phpunit
bootstrap=
"tests/unit/bootstrap.php"
>
<testsuites>
<testsuite>
<testsuite
name=
"Unit"
>
<directory
suffix=
"Test.php"
>
./tests/unit/
</directory>
</testsuite>
</testsuites>
...
...
This diff is collapsed.
Click to expand it.
tests/unit/ExampleTest.php
+
2
−
2
View file @
50d4a278
...
...
@@ -9,14 +9,14 @@ use WP_Mock\Tools\TestCase;
class
ExampleTest
extends
TestCase
{
// private $test_class_under_tests;
public
function
setUp
()
{
public
function
setUp
()
:
void
{
WP_Mock
::
setUp
();
// $example = Mockery::mock( class );
// $this->test_class_under_tests =
}
public
function
tearDown
()
{
public
function
tearDown
()
:
void
{
WP_Mock
::
tearDown
();
}
//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment