Skip to content

Commit e7de3b1

Browse files
committed
remove null transport
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
1 parent 450e8bb commit e7de3b1

4 files changed

Lines changed: 1 addition & 74 deletions

File tree

src/Transport/Factory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ abstract class Factory
2020
'file' => File::class,
2121
'inmemory' => InMemory::class,
2222
'memory' => InMemory::class,
23-
'null' => InMemory::class,
2423
'sendmail' => Sendmail::class,
2524
'smtp' => Smtp::class,
2625
];

src/Transport/Null.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

test/Transport/FactoryTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ public function typeProvider()
7777
[Smtp::class],
7878
];
7979

80-
if (version_compare(PHP_VERSION, '7.0', '<')) {
81-
$types[] = [NullTransport::class];
82-
}
83-
8480
return $types;
8581
}
8682

@@ -102,15 +98,12 @@ public function typeAliasProvider()
10298
{
10399
return [
104100
['file', File::class],
105-
['null', InMemory::class],
106101
['memory', InMemory::class],
107102
['inmemory', InMemory::class],
108103
['InMemory', InMemory::class],
109104
['sendmail', Sendmail::class],
110105
['smtp', Smtp::class],
111106
['File', File::class],
112-
['Null', InMemory::class],
113-
['NULL', InMemory::class],
114107
['Sendmail', Sendmail::class],
115108
['SendMail', Sendmail::class],
116109
['Smtp', Smtp::class],
@@ -124,7 +117,7 @@ public function typeAliasProvider()
124117
public function testCanUseTraversableAsSpec()
125118
{
126119
$spec = new ArrayObject([
127-
'type' => 'null'
120+
'type' => 'inMemory'
128121
]);
129122

130123
$transport = Factory::create($spec);

test/Transport/NullTest.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)