-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathValidateLineEndingsTest.php
More file actions
33 lines (30 loc) · 792 Bytes
/
ValidateLineEndingsTest.php
File metadata and controls
33 lines (30 loc) · 792 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
<?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 ValidateLineEndingsTest extends TestBase
{
public function validateLineEndingsData()
{
return array(
array('line_endings/valid.php', array()),
array('line_endings/invalid.php', array(
Output::FATAL . '-Not using Linux line endings (LF)-line_endings/invalid.php-',
)),
);
}
/**
* @dataProvider validateLineEndingsData
*/
public function testValidateLineEndings($file, $expected)
{
$this->validator->validateLineEndings($file);
$this->assertOutputMessages($expected);
}
}