Skip to content

Commit 6e03e0b

Browse files
committed
[Mime] Removes deprecated tests
1 parent ad849be commit 6e03e0b

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Tests/AddressTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Mime\Address;
16-
use Symfony\Component\Mime\Exception\InvalidArgumentException;
1716

1817
class AddressTest extends TestCase
1918
{
@@ -92,29 +91,6 @@ public function nameEmptyDataProvider(): array
9291
return [[''], [' '], [" \r\n "]];
9392
}
9493

95-
/**
96-
* @dataProvider fromStringProvider
97-
* @group legacy
98-
*/
99-
public function testFromString($string, $displayName, $addrSpec)
100-
{
101-
$address = Address::fromString($string);
102-
$this->assertEquals($displayName, $address->getName());
103-
$this->assertEquals($addrSpec, $address->getAddress());
104-
$fromToStringAddress = Address::fromString($address->toString());
105-
$this->assertEquals($displayName, $fromToStringAddress->getName());
106-
$this->assertEquals($addrSpec, $fromToStringAddress->getAddress());
107-
}
108-
109-
/**
110-
* @group legacy
111-
*/
112-
public function testFromStringFailure()
113-
{
114-
$this->expectException(InvalidArgumentException::class);
115-
Address::fromString('Jane Doe <[email protected]');
116-
}
117-
11894
public function fromStringProvider()
11995
{
12096
return [

0 commit comments

Comments
 (0)