1
0
Fork 0

Add test for fileTypes option

pull/668/head
Jürgen Steitz 2017-02-18 19:30:56 +01:00
parent 94336941bd
commit 39cfbda77b
1 changed files with 26 additions and 0 deletions

26
tests/OptionsTest.php Normal file
View File

@ -0,0 +1,26 @@
<?php
declare(strict_types = 1);
use PHPUnit\Framework\TestCase;
use LanguageServer\Options;
class LanguageServerTest extends TestCase
{
public function testFileTypesOption()
{
$expected = [
'.php',
'.valid'
];
$options = new Options;
$options->setFileTypes([
'.php',
false,
12345,
'.valid'
]);
$this->assertSame($expected, $options->fileTypes);
}
}