diff --git a/src/Transport/Factory.php b/src/Transport/Factory.php index ff974fb3..fa7d4e8d 100644 --- a/src/Transport/Factory.php +++ b/src/Transport/Factory.php @@ -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', ]; diff --git a/src/Transport/Null.php b/src/Transport/Null.php deleted file mode 100644 index 266463de..00000000 --- a/src/Transport/Null.php +++ /dev/null @@ -1,35 +0,0 @@ - 'null' + 'type' => 'inMemory' ]); $transport = Factory::create($spec); diff --git a/test/Transport/NullTest.php b/test/Transport/NullTest.php deleted file mode 100644 index f563a448..00000000 --- a/test/Transport/NullTest.php +++ /dev/null @@ -1,32 +0,0 @@ -=')) { - $this->markTestSkipped('Cannot test Null transport under PHP 7; reserved keyword'); - } - } - - public function testRaisesNoticeOnInstantiation() - { - $this->expectException('PHPUnit_Framework_Error_Deprecated'); - new NullTransport(); - } -}