File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 1313
1414use PHPUnit \Framework \TestCase ;
1515use Symfony \Component \Mime \Address ;
16- use Symfony \Component \Mime \Exception \InvalidArgumentException ;
1716
1817class 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 [
You can’t perform that action at this time.
0 commit comments