-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from recca0120/feat/describe-as-suite
Feat/describe as suite
- Loading branch information
Showing
20 changed files
with
273 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/PHPUnit/__tests__/fixtures/pest-stub/tests/Feature/AuthenticationPageTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Tests\Feature; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
class AuthenticationPageTest extends TestCase | ||
{ | ||
public function test_login_screen_can_be_rendered(): void | ||
{ | ||
self::assertTrue(true); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/PHPUnit/__tests__/fixtures/pest-stub/tests/Feature/AuthenticationTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Tests\Feature; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
|
||
class AuthenticationTest extends TestCase | ||
{ | ||
public function test_login_screen_can_be_rendered(): void | ||
{ | ||
self::assertTrue(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,8 @@ function something() | |
{ | ||
// .. | ||
} | ||
|
||
|
||
if (! function_exists('describe')) { | ||
function describe() {} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/PHPUnit/__tests__/fixtures/pest-stub/tests/Unit/DescribeTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
describe('something', function () { | ||
describe('something else', function () { | ||
it('test example', function () { | ||
expect(true)->toBeTrue(); | ||
}); | ||
|
||
it('test example2', function () { | ||
expect(true)->toBeTrue(); | ||
}); | ||
}); | ||
}); | ||
|
||
describe('before each', function () { | ||
test('example', function () { | ||
expect(true)->toBeTrue(); | ||
}); | ||
|
||
it('test example', function () { | ||
expect(true)->toBeTrue(); | ||
}); | ||
}); |
Oops, something went wrong.