Code Duplication    Length = 15-15 lines in 2 locations

tests/view/SSViewerTest.php 2 locations

@@ 1491-1505 (lines=15) @@
1488
		}
1489
	}
1490
1491
	public function testClosedBlockExtension() {
1492
		$count = 0;
1493
		$parser = new SSTemplateParser();
1494
		$parser->addClosedBlock(
1495
			'test',
1496
			function (&$res) use (&$count) {
1497
				$count++;
1498
			}
1499
		);
1500
1501
		$template = new SSViewer_FromString("<% test %><% end_test %>", $parser);
1502
		$template->process(new SSViewerTestFixture());
1503
1504
		$this->assertEquals(1, $count);
1505
	}
1506
1507
	public function testOpenBlockExtension() {
1508
		$count = 0;
@@ 1507-1521 (lines=15) @@
1504
		$this->assertEquals(1, $count);
1505
	}
1506
1507
	public function testOpenBlockExtension() {
1508
		$count = 0;
1509
		$parser = new SSTemplateParser();
1510
		$parser->addOpenBlock(
1511
			'test',
1512
			function (&$res) use (&$count) {
1513
				$count++;
1514
			}
1515
		);
1516
1517
		$template = new SSViewer_FromString("<% test %>", $parser);
1518
		$template->process(new SSViewerTestFixture());
1519
1520
		$this->assertEquals(1, $count);
1521
	}
1522
1523
	/**
1524
	 * Tests if caching for SSViewer_FromString is working