-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathValidateIndexTest.php
More file actions
34 lines (31 loc) · 806 Bytes
/
ValidateIndexTest.php
File metadata and controls
34 lines (31 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
*
* @package phpBB Translation Validator
* @copyright (c) 2014 phpBB Ltd.
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
namespace Phpbb\TranslationValidator\Tests\FileValidator;
use Phpbb\TranslationValidator\Output\Output;
class ValidateIndexTest extends TestBase
{
public function validateIndexFileData()
{
return array(
array('index/empty_index.htm', array()),
array('index/default_index.htm', array()),
array('index/invalid_index.htm', array(
Output::FATAL . '-File must be empty-index/invalid_index.htm-',
)),
);
}
/**
* @dataProvider validateIndexFileData
*/
public function testValidateIndexFile($file, $expected)
{
$this->validator->validateIndexFile($file);
$this->assertOutputMessages($expected);
}
}