@@ -97,6 +97,7 @@ public function testThrowsTransportExceptionOnFailure()
97
97
$ sendmailTransport ->send ($ mail , $ envelope );
98
98
99
99
$ streamProperty = new \ReflectionProperty (SendmailTransport::class, 'stream ' );
100
+ $ streamProperty ->setAccessible (true );
100
101
$ stream = $ streamProperty ->getValue ($ sendmailTransport );
101
102
$ this ->assertNull ($ stream ->stream );
102
103
}
@@ -114,8 +115,10 @@ public function testStreamIsClearedOnFailure()
114
115
}
115
116
116
117
$ streamProperty = new \ReflectionProperty (SendmailTransport::class, 'stream ' );
118
+ $ streamProperty ->setAccessible (true );
117
119
$ stream = $ streamProperty ->getValue ($ sendmailTransport );
118
120
$ innerStreamProperty = new \ReflectionProperty (ProcessStream::class, 'stream ' );
121
+ $ innerStreamProperty ->setAccessible (true );
119
122
$ this ->assertNull ($ innerStreamProperty ->getValue ($ stream ));
120
123
}
121
124
@@ -127,6 +130,7 @@ public function testDoesNotThrowWhenInteractive()
127
130
128
131
$ sendmailTransport = new SendmailTransport (self ::FAKE_INTERACTIVE_SENDMAIL );
129
132
$ transportProperty = new \ReflectionProperty (SendmailTransport::class, 'transport ' );
133
+ $ transportProperty ->setAccessible (true );
130
134
131
135
// Replace the transport with an anonymous consumer that trigger the stream methods
132
136
$ transportProperty ->setValue ($ sendmailTransport , new class ($ transportProperty ->getValue ($ sendmailTransport )->getStream ()) implements TransportInterface {
0 commit comments