File tree 5 files changed +15
-8
lines changed
src/Symfony/Component/Notifier/Bridge/Bandwidth
5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
1
/Tests export-ignore
2
2
/phpunit.xml.dist export-ignore
3
3
/.gitattributes export-ignore
4
- /.gitignore export-ignore
4
+ /.gitignore export-ignore
Original file line number Diff line number Diff line change 1
1
vendor /
2
2
composer.lock
3
- phpunit.xml
3
+ phpunit.xml
Original file line number Diff line number Diff line change @@ -79,48 +79,56 @@ public function setAccountId(string $accountId): self
79
79
public function setApplicationId (string $ applicationId ): self
80
80
{
81
81
$ this ->options ['application_id ' ] = $ applicationId ;
82
+
82
83
return $ this ;
83
84
}
84
85
85
86
public function setExpiration (string $ expiration ): self
86
87
{
87
88
$ this ->options ['expiration ' ] = $ expiration ;
89
+
88
90
return $ this ;
89
91
}
90
92
91
93
public function setFrom (string $ from ): self
92
94
{
93
95
$ this ->options ['from ' ] = $ from ;
96
+
94
97
return $ this ;
95
98
}
96
99
97
100
public function setMedia (array $ media ): self
98
101
{
99
102
$ this ->options ['media ' ] = $ media ;
103
+
100
104
return $ this ;
101
105
}
102
106
103
107
public function setPriority (string $ priority ): self
104
108
{
105
109
$ this ->options ['priority ' ] = $ priority ;
110
+
106
111
return $ this ;
107
112
}
108
113
109
114
public function setRecipientId (string $ id ): self
110
115
{
111
116
$ this ->options ['recipient_id ' ] = $ id ;
117
+
112
118
return $ this ;
113
119
}
114
120
115
121
public function setTag (string $ tag ): self
116
122
{
117
123
$ this ->options ['tag ' ] = $ tag ;
124
+
118
125
return $ this ;
119
126
}
120
127
121
128
public function setTo (array $ to ): self
122
129
{
123
130
$ this ->options ['to ' ] = $ to ;
131
+
124
132
return $ this ;
125
133
}
126
134
Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ public function testNoInvalidArgumentExceptionIsThrownIfFromIsValid(string $from
64
64
$ client = new MockHttpClient (function (string $ method ,string $ url ) use ($ response ): ResponseInterface {
65
65
self ::assertSame ('POST ' , $ method );
66
66
self ::assertSame ('https://messaging.bandwidth.com/api/v2/users/account_id/messages ' , $ url );
67
- return $ response ;
67
+
68
+ return $ response ;
68
69
});
69
70
$ transport = $ this ->createTransport ($ client , $ from );
70
71
$ sentMessage = $ transport ->send ($ message );
Original file line number Diff line number Diff line change 20
20
],
21
21
"require" : {
22
22
"php" : " >=8.1" ,
23
- "symfony/event-dispatcher" : " ^6.3 " ,
24
- "symfony/http-client" : " ^6.3 " ,
23
+ "symfony/event-dispatcher" : " ^5.4|^6.0 " ,
24
+ "symfony/http-client" : " ^5.4|^6.0 " ,
25
25
"symfony/notifier" : " ^6.3"
26
26
},
27
27
"autoload" : {
28
- "psr-4" : {
29
- "Symfony\\ Component\\ Notifier\\ Bridge\\ Bandwidth\\ " : " "
30
- },
28
+ "psr-4" : {"Symfony\\ Component\\ Notifier\\ Bridge\\ Bandwidth\\ " : " " },
31
29
"exclude-from-classmap" : [
32
30
" /Tests/"
33
31
]
You can’t perform that action at this time.
0 commit comments