From 6722a249442a8316a13fd086f3b9e0439a8a1bdf Mon Sep 17 00:00:00 2001 From: Richardas Kuchinskas Date: Fri, 3 May 2024 16:04:42 +0300 Subject: [PATCH] added tests --- src/tests/checkers/php_aliases_test.go | 43 +++++++++++++++++++ .../golden/testdata/quickfix/phpAliases.php | 9 ++++ .../testdata/quickfix/phpAliases.php.fix | 9 ++++ .../quickfix/phpAliases.php.fix.expected | 9 ++++ 4 files changed, 70 insertions(+) create mode 100644 src/tests/checkers/php_aliases_test.go create mode 100644 src/tests/golden/testdata/quickfix/phpAliases.php create mode 100644 src/tests/golden/testdata/quickfix/phpAliases.php.fix create mode 100644 src/tests/golden/testdata/quickfix/phpAliases.php.fix.expected diff --git a/src/tests/checkers/php_aliases_test.go b/src/tests/checkers/php_aliases_test.go new file mode 100644 index 00000000..6fba1a8b --- /dev/null +++ b/src/tests/checkers/php_aliases_test.go @@ -0,0 +1,43 @@ +package checkers + +import ( + "testing" + + "github.com/VKCOM/noverify/src/linttest" +) + +func TestPhpAliases(t *testing.T) { + test := linttest.NewSuite(t) + test.AddFile(`