Completed
Push — master ( 45aa1e...841b62 )
by Thomas
19:35
created

HtmlResponseTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @author Christoph Wurst <[email protected]>
5
 * @author Thomas Müller <[email protected]>
6
 *
7
 * Mail
8
 *
9
 * This code is free software: you can redistribute it and/or modify
10
 * it under the terms of the GNU Affero General Public License, version 3,
11
 * as published by the Free Software Foundation.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
 * GNU Affero General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU Affero General Public License, version 3,
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
20
 *
21
 */
22
namespace OCA\Mail\Tests\Http;
23
24
25
use OCA\Mail\Http\HtmlResponse;
26
27
class HtmlResponseTest extends \PHPUnit_Framework_TestCase {
28
29
	/**
30
	 * @dataProvider providesResponseData
31
	 * @param $content
32
	 * @param $filename
33
	 * @param $contentType
34
	 */
35
	public function testIt($content){
36
37
		$resp = new HtmlResponse($content);
38
		$this->assertEquals($content, $resp->render());
39
    }
40
41
	public function providesResponseData() {
42
		return [
43
			['1234567890']
44
		];
45
	}
46
}
47