-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6999d24
commit 425a181
Showing
8 changed files
with
90 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="vendor/autoload.php" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
verbose="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false"> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="Mail Intercept Test Suite"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
|
||
<source> | ||
<include> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</include> | ||
</source> | ||
</phpunit> |
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,15 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Traits\ForwardsCalls; | ||
use KirschbaumDevelopment\MailIntercept\AssertableMessage; | ||
use KirschbaumDevelopment\MailIntercept\WithMailInterceptor; | ||
use PHPUnit\Framework\Assert; | ||
|
||
arch()->expect(AssertableMessage::class) | ||
->toExtend(Assert::class); | ||
|
||
arch()->expect(AssertableMessage::class) | ||
->toUseTraits([ | ||
ForwardsCalls::class, | ||
WithMailInterceptor::class, | ||
]); |
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,14 @@ | ||
<?php | ||
|
||
arch()->expect('KirschbaumDevelopment\MailIntercept\Assertions') | ||
->toBeTraits(); | ||
|
||
arch()->expect('KirschbaumDevelopment\MailIntercept\Assertions') | ||
->traits() | ||
->toHaveSuffix('Assertions'); | ||
|
||
arch()->expect('KirschbaumDevelopment\MailIntercept\Assertions') | ||
->not->toHavePrivateMethods(); | ||
|
||
arch()->expect('KirschbaumDevelopment\MailIntercept\Assertions') | ||
->not->toHaveProtectedMethods(); |
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,7 @@ | ||
<?php | ||
|
||
arch()->preset()->laravel(); | ||
|
||
arch()->preset()->php(); | ||
|
||
arch()->preset()->security(); |
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,33 @@ | ||
<?php | ||
|
||
use KirschbaumDevelopment\MailIntercept\Assertions\BccAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\CcAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\ContentAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\ContentTypeAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\FromAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\PriorityAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\ReplyToAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\ReturnPathAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\SenderAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\SubjectAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\ToAssertions; | ||
use KirschbaumDevelopment\MailIntercept\Assertions\UnstructuredHeaderAssertions; | ||
|
||
arch()->expect('KirschbaumDevelopment\MailIntercept\WithMailInterceptor') | ||
->toBeTrait(); | ||
|
||
arch()->expect('KirschbaumDevelopment\MailIntercept\WithMailInterceptor') | ||
->toUseTraits([ | ||
BccAssertions::class, | ||
CcAssertions::class, | ||
ContentAssertions::class, | ||
ContentTypeAssertions::class, | ||
FromAssertions::class, | ||
PriorityAssertions::class, | ||
ReplyToAssertions::class, | ||
ReturnPathAssertions::class, | ||
SenderAssertions::class, | ||
SubjectAssertions::class, | ||
ToAssertions::class, | ||
UnstructuredHeaderAssertions::class, | ||
]); |