Skip to content

Commit

Permalink
remove null transport
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Jul 24, 2020
1 parent 450e8bb commit e7de3b1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 74 deletions.
1 change: 0 additions & 1 deletion src/Transport/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ abstract class Factory
'file' => File::class,
'inmemory' => InMemory::class,
'memory' => InMemory::class,
'null' => InMemory::class,
'sendmail' => Sendmail::class,
'smtp' => Smtp::class,
];
Expand Down
34 changes: 0 additions & 34 deletions src/Transport/Null.php

This file was deleted.

9 changes: 1 addition & 8 deletions test/Transport/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ public function typeProvider()
[Smtp::class],
];

if (version_compare(PHP_VERSION, '7.0', '<')) {
$types[] = [NullTransport::class];
}

return $types;
}

Expand All @@ -102,15 +98,12 @@ public function typeAliasProvider()
{
return [
['file', File::class],
['null', InMemory::class],
['memory', InMemory::class],
['inmemory', InMemory::class],
['InMemory', InMemory::class],
['sendmail', Sendmail::class],
['smtp', Smtp::class],
['File', File::class],
['Null', InMemory::class],
['NULL', InMemory::class],
['Sendmail', Sendmail::class],
['SendMail', Sendmail::class],
['Smtp', Smtp::class],
Expand All @@ -124,7 +117,7 @@ public function typeAliasProvider()
public function testCanUseTraversableAsSpec()
{
$spec = new ArrayObject([
'type' => 'null'
'type' => 'inMemory'
]);

$transport = Factory::create($spec);
Expand Down
31 changes: 0 additions & 31 deletions test/Transport/NullTest.php

This file was deleted.

0 comments on commit e7de3b1

Please sign in to comment.