File tree 1 file changed +0
-24
lines changed
Filter options
src/Symfony/Component/Mime/Tests
1 file changed +0
-24
lines changed
Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Mime \Address ;
16
- use Symfony \Component \Mime \Exception \InvalidArgumentException ;
17
16
18
17
class AddressTest extends TestCase
19
18
{
@@ -92,29 +91,6 @@ public function nameEmptyDataProvider(): array
92
91
return [['' ], [' ' ], [" \r\n " ]];
93
92
}
94
93
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 <example@example.com ' );
116
- }
117
-
118
94
public function fromStringProvider ()
119
95
{
120
96
return [
You can’t perform that action at this time.
0 commit comments