-
Notifications
You must be signed in to change notification settings - Fork 0
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
5867769
commit 2763e3f
Showing
32 changed files
with
194 additions
and
273 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create(); | ||
|
||
$finder->in(__DIR__); | ||
$finder->exclude('vendor'); | ||
|
||
$config = PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'PedroTroller/line_break_between_statements' => true, | ||
'PedroTroller/phpspec' => true, | ||
'PedroTroller/single_line_comment' => ['action' => 'expanded'], | ||
'array_syntax' => [ 'syntax' => 'short', ], | ||
'binary_operator_spaces' => [ 'align_double_arrow' => true, 'align_equals' => true, ], | ||
'blank_line_before_statement' => true, | ||
'ordered_class_elements' => true, | ||
'ordered_imports' => true, | ||
'phpdoc_types_order' => true, | ||
'semicolon_after_instruction' => true, | ||
'single_line_comment_style' => true, | ||
]) | ||
->setUsingCache(false) | ||
->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers()) | ||
->setFinder($finder) | ||
; | ||
|
||
return $config; |
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 was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
spec/Knp/UniMail/AttachmentFactory/LocalAttachmentFactorySpec.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
5 changes: 2 additions & 3 deletions
5
spec/Knp/UniMail/AttachmentFactory/RemoteAttachmentFactorySpec.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
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,11 +1,10 @@ | ||
<?php | ||
|
||
namespace spec\Knp\Rad\Mailer\MailFactory; | ||
namespace spec\Knp\UniMail\MailFactory; | ||
|
||
use Knp\Rad\Mailer\Mail; | ||
use Knp\Rad\Mailer\MailFactory; | ||
use Knp\UniMail\Mail; | ||
use Knp\UniMail\MailFactory; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
|
||
class ConfigurationAwareFactorySpec extends ObjectBehavior | ||
{ | ||
|
@@ -15,15 +14,15 @@ function let(MailFactory $factory) | |
'the_mail' => [ | ||
'from' => '[email protected]', | ||
'to' => '[email protected]', | ||
] | ||
], | ||
]; | ||
|
||
$this->beConstructedWith($configuration, $factory); | ||
} | ||
|
||
function it_is_initializable() | ||
{ | ||
$this->shouldHaveType('Knp\Rad\Mailer\MailFactory\ConfigurationAwareFactory'); | ||
$this->shouldHaveType('Knp\UniMail\MailFactory\ConfigurationAwareFactory'); | ||
} | ||
|
||
function it_instantiate_a_new_mail_with_configuration($factory, Mail $mail) | ||
|
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
Oops, something went wrong.