Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

remove Null Transport #195

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion src/Transport/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ abstract class Factory
'file' => 'Zend\Mail\Transport\File',
'inmemory' => 'Zend\Mail\Transport\InMemory',
'memory' => 'Zend\Mail\Transport\InMemory',
'null' => 'Zend\Mail\Transport\InMemory',
'sendmail' => 'Zend\Mail\Transport\Sendmail',
'smtp' => 'Zend\Mail\Transport\Smtp',
];
Expand Down
35 changes: 0 additions & 35 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 @@ -71,10 +71,6 @@ public function typeProvider()
['Zend\Mail\Transport\Smtp'],
];

if (version_compare(PHP_VERSION, '7.0', '<')) {
$types[] = ['Zend\Mail\Transport\Null'];
}

return $types;
}

Expand All @@ -96,15 +92,12 @@ public function typeAliasProvider()
{
return [
['file', 'Zend\Mail\Transport\File'],
['null', 'Zend\Mail\Transport\InMemory'],
['memory', 'Zend\Mail\Transport\InMemory'],
['inmemory', 'Zend\Mail\Transport\InMemory'],
['InMemory', 'Zend\Mail\Transport\InMemory'],
['sendmail', 'Zend\Mail\Transport\Sendmail'],
['smtp', 'Zend\Mail\Transport\Smtp'],
['File', 'Zend\Mail\Transport\File'],
['Null', 'Zend\Mail\Transport\InMemory'],
['NULL', 'Zend\Mail\Transport\InMemory'],
['Sendmail', 'Zend\Mail\Transport\Sendmail'],
['SendMail', 'Zend\Mail\Transport\Sendmail'],
['Smtp', 'Zend\Mail\Transport\Smtp'],
Expand All @@ -118,7 +111,7 @@ public function typeAliasProvider()
public function testCanUseTraversableAsSpec()
{
$spec = new ArrayObject([
'type' => 'null'
'type' => 'inMemory'
]);

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

This file was deleted.