From d24c42008e0e84bb2646e0829f958efdb6e77375 Mon Sep 17 00:00:00 2001 From: Vincent Klaiber Date: Mon, 2 Oct 2017 22:36:04 +0200 Subject: [PATCH 1/2] Exclude non-essential files in .gitattributes (#486) * Exclude non-essential files in .gitattributes https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/ * Add validation and .gitmodules --- .gitattributes | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7600d2f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +* text=auto + +/.vscode export-ignore +/fixtures export-ignore +/tests export-ignore +/images export-ignore +/validation export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/.gitmodules export-ignore +/.dockerignore export-ignore +/.travis.yml export-ignore +/codecov.yml export-ignore +/Dockerfile export-ignore +/Performance.php export-ignore +/php.ini export-ignore +/phpcs.xml.dist export-ignore +/phpunit.xml.dist export-ignore +/README.md export-ignore From 3d8655d504dd5ba0e6837c4c40180d0b178f5976 Mon Sep 17 00:00:00 2001 From: Vincent Klaiber Date: Mon, 2 Oct 2017 22:37:28 +0200 Subject: [PATCH 2/2] Update phpunit config (#488) * Update phpunit config * Rename DocumentHighlight class --- phpunit.xml.dist | 23 ++++++++++++++++++----- src/Protocol/DocumentHighlight.php | 2 +- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 38df71a..a6970f3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,14 +1,27 @@ - + - ./tests + ./tests - - - ./src + + ./src diff --git a/src/Protocol/DocumentHighlight.php b/src/Protocol/DocumentHighlight.php index e00c842..167d45a 100644 --- a/src/Protocol/DocumentHighlight.php +++ b/src/Protocol/DocumentHighlight.php @@ -7,7 +7,7 @@ namespace LanguageServer\Protocol; * special attention. Usually a document highlight is visualized by changing * the background color of its range. */ -class DocumentHighlightKind +class DocumentHighlight { /** * The range this highlight applies to.