diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..71c5103 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/vendor +composer.phar +composer.lock +tests/_output/* \ No newline at end of file diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 0000000..0285f17 --- /dev/null +++ b/.styleci.yml @@ -0,0 +1 @@ +preset: laravel diff --git a/composer.json b/composer.json index a649e66..a462d29 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,15 @@ ], "minimum-stability": "dev", "require": {}, + "require-dev": { + "phpunit/phpunit" : "^8.0", + "orchestra/testbench": "~3.8.0|^4.0" + }, + "autoload-dev": { + "psr-4": { + "Laravel\\DataTables\\Tests\\": "tests/" + } + }, "autoload": { "psr-4": { "Laravel\\DataTables\\" : "src/" diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..e2483c0 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,30 @@ + + + + + ./tests/ + + + + + app/ + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..1617407 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,9 @@ +