Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b42c75

Browse filesBrowse files
authored
Merge pull request laravel-zero#220 from matt-allan/setup-unit-tests
Add example unit test
2 parents 77473c6 + b1ac0a5 commit 5b42c75
Copy full SHA for 5b42c75

File tree

Expand file treeCollapse file tree

2 files changed

+21
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+21
-0
lines changed

‎phpunit.xml.dist

Copy file name to clipboardExpand all lines: phpunit.xml.dist
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<testsuite name="Feature">
1313
<directory suffix="Test.php">./tests/Feature</directory>
1414
</testsuite>
15+
<testsuite name="Unit">
16+
<directory suffix="Test.php">./tests/Unit</directory>
17+
</testsuite>
1518
</testsuites>
1619
<listeners>
1720
<listener class="NunoMaduro\Collision\Adapters\Phpunit\Listener"/>

‎tests/Unit/ExampleTest.php

Copy file name to clipboard
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Tests\Unit;
4+
5+
use Tests\TestCase;
6+
7+
class ExampleTest extends TestCase
8+
{
9+
/**
10+
* A basic test example.
11+
*
12+
* @return void
13+
*/
14+
public function testBasicTest()
15+
{
16+
$this->assertTrue(true);
17+
}
18+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.