Code Duplication    Length = 8-8 lines in 2 locations

dev/tests/Win/Alert/AlertTest.php 1 location

@@ 23-30 (lines=8) @@
20
		$this->assertEquals('success', $instance2->type);
21
	}
22
23
	public function testLoad() {
24
		ob_start();
25
		$alert = new AlertError('My Error msg');
26
		$alert->load();
27
		$content = ob_get_contents();
28
		ob_end_clean();
29
		$this->assertNotEmpty($content);
30
	}
31
32
	public function testCreateAlertWithError() {
33
		ob_start();

dev/tests/Win/Alert/SessionTest.php 1 location

@@ 41-48 (lines=8) @@
38
		$this->assertEquals($alert->message, $alerts[0]->message);
39
	}
40
41
	public function testShowAnything() {
42
		ob_start();
43
		new AlertError('My Error msg');
44
		Session::showAlerts();
45
		$content = ob_get_contents();
46
		ob_end_clean();
47
		$this->assertNotEmpty($content);
48
	}
49
50
	public function testShowNothing() {
51
		ob_start();