Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Tests/Mailer/MailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
use PHPUnit\Framework\TestCase;
use Swift_Mailer;
use Swift_Transport_NullTransport;
use Symfony\Component\Templating\EngineInterface;

class MailerTest extends TestCase
{
protected function setUp()
{
// skip test for Symfony > 5
if (!interface_exists(EngineInterface::class)) {
$this->markTestSkipped(sprintf('%s class not exists', EngineInterface::class));
if (!interface_exists('Symfony\Bundle\FrameworkBundle\Templating\EngineInterface')) {
$this->markTestSkipped('Symfony\Bundle\FrameworkBundle\Templating\EngineInterface class not exists');
}
}

Expand Down
4 changes: 4 additions & 0 deletions Tests/Util/PasswordUpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public function testUpdatePassword()

public function testUpdatePasswordWithBCrypt()
{
if (!class_exists('Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder')) {
$this->markTestSkipped('This test requires Symfony 4');
}

$encoder = $this->getMockBuilder('Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder')
->disableOriginalConstructor()
->getMock();
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"symfony/doctrine-bridge": "<4.4"
},
"require-dev": {
"doctrine/doctrine-bundle": "^1.3",
"friendsofphp/php-cs-fixer": "^3.0.2",
"doctrine/doctrine-bundle": "^1.3 || ^2",
"friendsofphp/php-cs-fixer": "^3.0.2, !=3.5.0",
"swiftmailer/swiftmailer": "^4.3 || ^5.0 || ^6.0",
"symfony/console": "^4.4 || ^5.0",
"symfony/phpunit-bridge": "^5.3",
Expand Down