mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/11943] Throw an exception if DEFINE is setup improperly
PHPBB3-11943
This commit is contained in:
@@ -561,4 +561,12 @@ EOT
|
||||
$expect = 'outer - 0[outer|4]outer - 1[outer|4]middle - 0[middle|1]outer - 2 - test[outer|4]middle - 0[middle|2]middle - 1[middle|2]outer - 3[outer|4]middle - 0[middle|3]middle - 1[middle|3]middle - 2[middle|3]';
|
||||
$this->assertEquals($expect, str_replace(array("\n", "\r", "\t"), '', $this->display('test')), 'Ensuring S_NUM_ROWS is correct after modification');
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Twig_Error_Syntax
|
||||
*/
|
||||
public function test_define_error()
|
||||
{
|
||||
$this->run_template('define_error.html', array(), array(), array(), '');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user