Skip to content
Draft
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
11 changes: 6 additions & 5 deletions src/Driver/IMAPDriver.php → src/Imap/Driver/ImapDriver.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<?php

namespace BehatMailExtension\Driver;
namespace BehatMailExtension\Imap\Driver;

use BehatMailExtension\Driver\MailDriverInterface;
use BehatMailExtension\Imap\Search\Header;
use BehatMailExtension\Service\Connection;
use Ddeboer\Imap\MailboxInterface;
use Ddeboer\Imap\Message;
use Ddeboer\Imap\MessageInterface;
use Ddeboer\Imap\MessageIteratorInterface;
use Ddeboer\Imap\Search\ConditionInterface;
use BehatMailExtension\Imap\Search\Header;
use Ddeboer\Imap\SearchExpression;
use Ddeboer\Imap\Message;
use const LATT_NOSELECT;

/**
* Class IMAPDriver
* Class ImapDriver
*
* @author Philip Maaß <PhilipMaasz@aol.com>
*/
class IMAPDriver implements MailDriverInterface
class ImapDriver implements MailDriverInterface
{
/**
* @var array
Expand Down
4 changes: 2 additions & 2 deletions src/ServiceContainer/MailExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use Behat\Testwork\ServiceContainer\Extension;
use Behat\Testwork\ServiceContainer\ExtensionManager;
use BehatMailExtension\Context\MailAwareInitializer;
use BehatMailExtension\Driver\IMAPDriver;
use BehatMailExtension\Driver\MailDriverInterface;
use BehatMailExtension\Imap\Driver\ImapDriver;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
Expand Down Expand Up @@ -83,7 +83,7 @@ public function load(ContainerBuilder $container, array $config)

switch ($config['driver']) {
case 'imap':
$driver = new IMAPDriver($config);
$driver = new ImapDriver($config);
break;
case 'pop3':
case 'smtp':
Expand Down
6 changes: 6 additions & 0 deletions tests/MailExtensionTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

class MailExtensionTest
{

}