Skip to content

Commit

Permalink
switch to Ffuenf_DeleteOrder
Browse files Browse the repository at this point in the history
integrate test-suite
  • Loading branch information
arosenhagen committed May 20, 2015
1 parent 8b0dc39 commit 5022ee2
Show file tree
Hide file tree
Showing 28 changed files with 870 additions and 500 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vagrant
travis_key_chunk.sh
246 changes: 246 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
before_commands:
- git clone https://github.com/magento-ecg/coding-standard ../magento-ecg/
imports:
- php
- javascript
tools:
php_sim: true
php_pdepend: true
php_analyzer: true
external_code_coverage: false
php_code_sniffer:
config:
standard: Zend
include_standards:
- ../magento-ecg/
checks:
php:
align_assignments: false
argument_type_checks: true
assignment_of_null_return: true
avoid_aliased_php_functions: true
avoid_conflicting_incrementers: true
avoid_corrupting_byteorder_marks: true
avoid_duplicate_types: true
avoid_entity_manager_injection: true
avoid_fixme_comments: true
avoid_length_functions_in_loops: true
avoid_multiple_statements_on_same_line: true
avoid_superglobals: true
avoid_tab_indentation: true
avoid_todo_comments: true
avoid_unnecessary_concatenation: true
avoid_usage_of_logical_operators: true
avoid_useless_overridden_methods: true
closure_use_modifiable: true
closure_use_not_conflicting: true
code_rating: true
deadlock_detection_in_loops: true
deprecated_code_usage: true
duplication: true
encourage_postdec_operator: true
encourage_single_quotes: true
ensure_lower_case_builtin_functions: true
fix_doc_comments: true
fix_identation_4spaces: true
fix_linefeed: true
fix_php_opening_tag: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
foreach_traversable: true
foreach_usable_as_reference: true
function_body_start_on_new_line: true
function_in_camel_caps: true
lowercase_basic_constants: true
lowercase_php_keywords: true
method_calls_on_non_object: true
missing_arguments: true
more_specific_types_in_doc_comments: true
naming_conventions:
local_variable: '(^[a-z][a-zA-Z0-9]*$|^this$|^i$)'
abstract_class_name: ^Abstract|Factory$|_Abstract$
utility_class_name: 'Utils?$'
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
property_name: '(^[a-z][a-zA-Z0-9]*$)'
method_name: '^((?:[a-z]|__)[a-zA-Z0-9]*|_construct|_prepareCollection|_prepareColumns|_isAllowed)$'
parameter_name: '(^[a-z][a-zA-Z0-9]*$)'
interface_name: '^[A-Z][a-zA-Z0-9]*_?Interface$'
type_name: '^[A-Z][a-zA-Z0-9_]*$'
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
isser_method_name: '^(?:is|has|should|may|supports|persist)'
no_commented_out_code: true
no_duplicate_arguments: true
no_else_if_statements: true
no_empty_statements: true
no_error_suppression: true
no_eval: true
no_global_keyword: true
no_mixed_inline_html: true
non_commented_empty_catch_block: true
no_non_implemented_abstract_methods: true
no_property_on_interface: true
no_short_open_tag: true
no_space_after_cast: true
no_space_around_object_operator: true
no_space_before_semicolon: true
no_space_inside_cast_operator: true
no_trailing_whitespace: true
no_underscore_prefix_in_methods: true
no_underscore_prefix_in_properties: true
no_unnecessary_final_modifier: true
no_unnecessary_function_call_in_for_loop: true
no_unnecessary_if: true
one_class_per_file: true
optional_parameters_at_the_end: true
overriding_private_members: true
param_doc_comment_if_not_inferrable: true
parameter_doc_comments: true
parameter_non_unique: true
parameters_in_camelcaps: true
php5_style_constructor: true
phpunit_assertions: true
precedence_in_conditions: true
precedence_mistakes: true
prefer_sapi_constant: true
prefer_while_loop_over_for_loop: true
properties_in_camelcaps: true
psr2_class_declaration: true
psr2_control_structure_declaration: true
psr2_switch_declaration: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
require_braces_around_control_structures: true
require_php_tag_first: true
require_scope_for_methods: true
require_scope_for_properties: true
return_doc_comment_if_not_inferrable: true
return_doc_comments: true
scope_indentation:
spaces_per_level: '4'
security_vulnerabilities: true
side_effects_or_types: true
simplify_boolean_return: true
single_namespace_per_use: true
spacing_around_conditional_operators: true
spacing_around_non_conditional_operators: true
spacing_of_function_arguments: true
sql_injection_vulnerabilities: true
switch_fallthrough_commented: true
symfony_request_injection: true
too_many_arguments: true
unreachable_code: true
unused_methods: true
unused_parameters: true
unused_properties: true
unused_variables: true
uppercase_constants: true
useless_calls: true
use_self_instead_of_fqcn: true
use_statement_alias_conflict: true
variable_existence: true
verify_access_scope_valid: true
verify_argument_usable_as_reference: true
verify_property_names: true
no_goto: true
newline_at_end_of_file: true
fix_line_ending: true
avoid_perl_style_comments: true
javascript:
yoda:
setting: 'Disallow Yoda Conditions'
wrap_regex: true
wrap_iife: true
vars_on_top: true
valid_typeof: true
valid_jsdoc: true
use_isnan: true
space_return_throw_case: true
radix: true
one_var: true
no_wrap_func: true
no_with: true
no_void: true
no_use_before_define: true
no_unused_vars: true
no_unused_expressions: true
no_unreachable: true
no_underscore_dangle: true
no_undefined: true
no_undef_init: true
no_undef: true
no_trailing_spaces: true
no_sparse_arrays: true
no_space_before_semi: true
no_shadow_restricted_names: true
no_shadow: true
no_sequences: true
no_self_compare: true
no_script_url: true
no_return_assign: true
no_reserved_keys: true
no_redeclare: true
no_proto: true
no_process_exit: true
no_process_env: true
no_octal_escape: true
no_octal: true
no_obj_calls: true
no_new_wrappers: true
no_new_require: true
no_new_func: true
no_nested_ternary: true
no_new: true
no_negated_in_lhs: true
no_native_reassign: true
no_multi_str: true
no_mixed_spaces_and_tabs: true
no_loop_func: true
no_lonely_if: true
no_lone_blocks: true
no_labels: true
no_label_var: true
no_iterator: true
no_irregular_whitespace: true
no_invalid_regexp: true
no_inner_declarations: true
no_implied_eval: true
no_func_assign: true
no_floating_decimal: true
no_fallthrough: true
no_extra_strict: true
no_extra_boolean_cast: true
no_extra_bind: true
no_ex_assign: true
no_eval: true
no_eq_null: true
no_empty_label: true
no_empty_class: true
no_empty: true
no_dupe_keys: true
no_div_regex: true
camelcase: true
block_scoped_var: true
comma_style:
style: 'At the end of the line'
curly: true
dot_notation: true
eol_last: true
new_parens: true
no_alert: true
no_caller: true
no_catch_shadow: true
no_console: true
no_comma_dangle: true
no_constant_condition: true
no_debugger: true
no_delete_var: true

coding_style:
php:
spaces:
other:
after_type_cast: false
53 changes: 17 additions & 36 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
language: php

php:
- 5.3
- 5.4
- 5.5

sudo: false

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: 5.6
- php: hhvm
env:
- MAGENTO_VERSION="1.5.0.1"
- MAGENTO_VERSION="1.6.0.0"
- MAGENTO_VERSION="1.6.1.0"
- MAGENTO_VERSION="1.6.2.0"
- MAGENTO_VERSION="1.7.0.0"
- MAGENTO_VERSION="1.7.0.1"
- MAGENTO_VERSION="1.7.0.2"
- MAGENTO_VERSION="1.8.0.0"
- MAGENTO_VERSION="1.8.1.0"
- MAGENTO_VERSION="1.9.0.0"
- MAGENTO_VERSION="1.9.0.1"
- MAGENTO_VERSION="1.9.1.0"

before_script:
- mkdir magento/
- git clone https://github.com/netz98/n98-magerun ./n98-magerun/
- git clone git://github.com/EcomDev/MageCI.git ./mageci/
- ./mageci/bin/mage-ci install magento $MAGENTO_VERSION magento_test -c -t -r http://mage-ci.ecomdev.org
- composer update
- git clone git://github.com/EcomDev/EcomDev_PHPUnit.git -b dev ./phpunit/
- CURR_DIR=$(pwd)
- wget https://raw.githubusercontent.com/colinmollenhour/modman/master/modman -O ./mageci/bin/modman
- chmod +x ./mageci/bin/modman
- ./mageci/bin/mage-ci install-module magento $CURR_DIR/phpunit
- ./mageci/bin/mage-ci install-module magento $CURR_DIR
- composer install --dev
- cd magento

matrix:
- MAGENTO_VERSION=magento-ce-1.9.1.1
- MAGENTO_VERSION=magento-ce-1.8.1.0
- MAGENTO_VERSION=magento-ce-1.7.0.2
- MAGENTO_VERSION=magento-ce-1.6.2.0
script:
- ../vendor/bin/phpunit --group EM_DeleteOrder
- curl -sSL https://raw.githubusercontent.com/ffuenf/MageTestStand/master/setup.sh
| bash
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CHANGELOG for Ffuenf_DeleteOrder

This file is used to list changes made in each version of Ffuenf_DeleteOrder.

## 2.0.0 (May 20, 2015)

* switch to Ffuenf_DeleteOrder
* integrate test-suite
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Achim Rosenhagen (ffuenf)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 5022ee2

Please sign in to comment.