Code Duplication    Length = 8-8 lines in 2 locations

dev/tests/Win/Alert/AlertTest.php 2 locations

@@ 32-39 (lines=8) @@
29
		$this->assertNotEmpty($content);
30
	}
31
32
	public function testCreateAlertWithError() {
33
		ob_start();
34
		Session::showAlerts();
35
		$alert = Alert::create('This is a error', 'Congratulations');
36
		$this->assertTrue($alert instanceof AlertError);
37
		$this->assertEquals('This is a error', $alert->message);
38
		ob_end_clean();
39
	}
40
41
	public function testCreateNoError() {
42
		ob_start();
@@ 41-48 (lines=8) @@
38
		ob_end_clean();
39
	}
40
41
	public function testCreateNoError() {
42
		ob_start();
43
		Session::showAlerts();
44
		$alert = Alert::create(null, 'Congratulations');
45
		$this->assertTrue($alert instanceof AlertSuccess);
46
		$this->assertEquals('Congratulations', $alert->message);
47
		ob_end_clean();
48
	}
49
50
}
51