|  | @@ 157-168 (lines=12) @@ | 
                                                            
                                    | 154 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 155 |  | 	} | 
                                                            
                                    | 156 |  |  | 
                                                            
                                    | 157 |  | 	public function testComposeWithSubject() { | 
                                                            
                                    | 158 |  | 		$address = '[email protected]'; | 
                                                            
                                    | 159 |  | 		$subject = 'hello there'; | 
                                                            
                                    | 160 |  | 		$uri = "mailto:$address?subject=$subject"; | 
                                                            
                                    | 161 |  |  | 
                                                            
                                    | 162 |  | 		$expected = new RedirectResponse('#mailto?to=' . urlencode($address) | 
                                                            
                                    | 163 |  | 			. '&subject=' . urlencode($subject)); | 
                                                            
                                    | 164 |  |  | 
                                                            
                                    | 165 |  | 		$response = $this->controller->compose($uri); | 
                                                            
                                    | 166 |  |  | 
                                                            
                                    | 167 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 168 |  | 	} | 
                                                            
                                    | 169 |  |  | 
                                                            
                                    | 170 |  | 	public function testComposeWithCc() { | 
                                                            
                                    | 171 |  | 		$address = '[email protected]'; | 
                                                                                
                                |  | @@ 170-181 (lines=12) @@ | 
                                                            
                                    | 167 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 168 |  | 	} | 
                                                            
                                    | 169 |  |  | 
                                                            
                                    | 170 |  | 	public function testComposeWithCc() { | 
                                                            
                                    | 171 |  | 		$address = '[email protected]'; | 
                                                            
                                    | 172 |  | 		$cc = '[email protected]'; | 
                                                            
                                    | 173 |  | 		$uri = "mailto:$address?cc=$cc"; | 
                                                            
                                    | 174 |  |  | 
                                                            
                                    | 175 |  | 		$expected = new RedirectResponse('#mailto?to=' . urlencode($address) | 
                                                            
                                    | 176 |  | 			. '&cc=' . urlencode($cc)); | 
                                                            
                                    | 177 |  |  | 
                                                            
                                    | 178 |  | 		$response = $this->controller->compose($uri); | 
                                                            
                                    | 179 |  |  | 
                                                            
                                    | 180 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 181 |  | 	} | 
                                                            
                                    | 182 |  |  | 
                                                            
                                    | 183 |  | 	public function testComposeWithBcc() { | 
                                                            
                                    | 184 |  | 		$address = '[email protected]'; | 
                                                                                
                                |  | @@ 183-194 (lines=12) @@ | 
                                                            
                                    | 180 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 181 |  | 	} | 
                                                            
                                    | 182 |  |  | 
                                                            
                                    | 183 |  | 	public function testComposeWithBcc() { | 
                                                            
                                    | 184 |  | 		$address = '[email protected]'; | 
                                                            
                                    | 185 |  | 		$bcc = '[email protected]'; | 
                                                            
                                    | 186 |  | 		$uri = "mailto:$address?bcc=$bcc"; | 
                                                            
                                    | 187 |  |  | 
                                                            
                                    | 188 |  | 		$expected = new RedirectResponse('#mailto?to=' . urlencode($address) | 
                                                            
                                    | 189 |  | 			. '&bcc=' . urlencode($bcc)); | 
                                                            
                                    | 190 |  |  | 
                                                            
                                    | 191 |  | 		$response = $this->controller->compose($uri); | 
                                                            
                                    | 192 |  |  | 
                                                            
                                    | 193 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 194 |  | 	} | 
                                                            
                                    | 195 |  |  | 
                                                            
                                    | 196 |  | 	public function testComposeWithMultilineBody() { | 
                                                            
                                    | 197 |  | 		$address = '[email protected]'; | 
                                                                                
                                |  | @@ 196-207 (lines=12) @@ | 
                                                            
                                    | 193 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 194 |  | 	} | 
                                                            
                                    | 195 |  |  | 
                                                            
                                    | 196 |  | 	public function testComposeWithMultilineBody() { | 
                                                            
                                    | 197 |  | 		$address = '[email protected]'; | 
                                                            
                                    | 198 |  | 		$body = 'Hi!\nWhat\'s up?\nAnother line'; | 
                                                            
                                    | 199 |  | 		$uri = "mailto:$address?body=$body"; | 
                                                            
                                    | 200 |  |  | 
                                                            
                                    | 201 |  | 		$expected = new RedirectResponse('#mailto?to=' . urlencode($address) | 
                                                            
                                    | 202 |  | 			. '&body=' . urlencode($body)); | 
                                                            
                                    | 203 |  |  | 
                                                            
                                    | 204 |  | 		$response = $this->controller->compose($uri); | 
                                                            
                                    | 205 |  |  | 
                                                            
                                    | 206 |  | 		$this->assertEquals($expected, $response); | 
                                                            
                                    | 207 |  | 	} | 
                                                            
                                    | 208 |  |  | 
                                                            
                                    | 209 |  | } | 
                                                            
                                    | 210 |  |  |