Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
added: scrutinizer badge and configs
Browse files Browse the repository at this point in the history
updated: composer dependencies
  • Loading branch information
ekvedaras committed Aug 12, 2018
1 parent aba5d52 commit 4e9f829
Show file tree
Hide file tree
Showing 7 changed files with 3,968 additions and 3,906 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
7 changes: 6 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
* text=auto

.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
.styleci.yml export-ignore
.travis.yml export-ignore
Dockerfile export-ignore
docker-compose.yml export-ignore
phpunit.xml export-ignore
tests/ export-ignore
CHANGELOG-*.md export-ignore
CHANGELOG-*.md export-ignore
33 changes: 33 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
filter:
excluded_paths: [tests/*]
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
tools:
external_code_coverage: false
php_analyzer: true
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ['src']
php_loc:
enabled: true
excluded_dirs: [vendor, tests]
php_cpd:
enabled: true
excluded_dirs: [vendor, tests]
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
preset: laravel
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# laravel-test-helpers

[![Build Status](https://travis-ci.org/ekvedaras/laravel-test-helpers.svg?branch=master)](https://travis-ci.org/ekvedaras/laravel-test-helpers)
[![Code Quality](https://scrutinizer-ci.com/g/ekvedaras/laravel-test-helpers/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ekvedaras/laravel-test-helpers/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/ekvedaras/laravel-test-helpers/badge.svg)](https://coveralls.io/github/ekvedaras/laravel-test-helpers)

When writing tests daily, some actions might get frustrating to repeat.
Expand Down
93 changes: 50 additions & 43 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,53 @@
{
"name": "ekvedaras/laravel-test-helpers",
"description": "Various helpers for writing tests for Laravel applications",
"type": "project",
"license": "GPL-3.0",
"authors": [
{
"name": "Ernestas Kvedaras",
"email": "kvedarasernestas@gmail.com"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=7.1",
"illuminate/support": "^5.6",
"mockery/mockery": "^1.1",
"phpunit/phpunit": "^7.3"
},
"require-dev": {
"facile-it/paraunit": "^0.12.3",
"orchestra/testbench": "^3.6"
},
"autoload": {
"psr-4": {
"Ekvedaras\\LaravelTestHelpers\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"test": [
"./vendor/bin/paraunit run -c phpunit.xml --parallel 4 --ansi"
"name": "ekvedaras/laravel-test-helpers",
"description": "Various helpers for writing tests for Laravel applications",
"keywords": [
"ekvedaras",
"laravel",
"testing",
"phpunit",
"mockery",
"helper"
],
"cover": [
"./vendor/bin/paraunit coverage --parallel 4 -c phpunit.xml --html=coverage-report --ansi"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
"type": "project",
"license": "GPL-3.0-or-later",
"homepage": "https://github.com/ekvedaras/laravel-test-helpers",
"authors": [
{
"name": "Ernestas Kvedaras",
"email": "kvedarasernestas@gmail.com"
}
],
"minimum-stability": "stable",
"require": {
"php": "^7.1",
"illuminate/support": "~5.6.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^7.0"
},
"require-dev": {
"facile-it/paraunit": "^0.12.3",
"orchestra/testbench": "^3.5"
},
"autoload": {
"psr-4": {
"Ekvedaras\\LaravelTestHelpers\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"test": [
"./vendor/bin/paraunit run -c phpunit.xml --parallel 4 --ansi"
],
"cover": [
"./vendor/bin/paraunit coverage --parallel 4 -c phpunit.xml --html=coverage-report --ansi"
]
},
"config": {
"sort-packages": true
}
}
Loading

0 comments on commit 4e9f829

Please sign in to comment.