Skip to content

Commit

Permalink
Project converted to work with JSON Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Nov 6, 2018
1 parent 48ce118 commit 1d4c387
Show file tree
Hide file tree
Showing 100 changed files with 3,877 additions and 3,826 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: tests/_output/coverage.xml
json_path: tests/_output/coveralls.json
26 changes: 4 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,13 @@
language: php

sudo: false

php:
- 7.1
- 7.0


- 7.2
before_script:
- pecl channel-update pecl.php.net
- pecl install yaml-2.0.0 < /dev/null
- echo "extension = yaml.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer install -n

addons:
apt:
packages:
- libyaml-dev
addons:
code_climate:
repo_token: b0a53bb7d832d3d4fc6cc499e3709d2206238cb0ba4da93b4e97d1150f17d453
script:
- phpunit --coverage-clover build/logs/clover.xml

- vendor/bin/codecept run unit --coverage --coverage-xml
after_script:
- if [ $TRAVIS_PHP_VERSION >= '7.0' ]; then php vendor/bin/coveralls; fi

- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then php vendor/bin/php-coveralls; fi
after_success:
- travis_retry php vendor/bin/coveralls -v
- travis_retry php vendor/bin/php-coveralls -v
- vendor/bin/test-reporter
10 changes: 10 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
48 changes: 21 additions & 27 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
{
"name": "selami/entity",
"description": "A library to assert variable types, to normalize and to set default values for a model definition.",
"description": "A library to assert variable types and values for a model defined using JSON Schema standard (draft-07 and draft-06).",
"type": "library",
"require": {
"php": "^7.2",
"ext-json": "*",
"opis/json-schema": "^1.0",
"ramsey/uuid": "^3.8"
},
"license": "MIT",
"authors": [
{
"name": "Mehmet Korkmaz",
"email": "mehmet@mkorkmaz.com"
}
],
"minimum-stability": "dev",
"require": {
"php": "~7.0||~7.1",
"crisu83/shortid": "~1.0",
"ezyang/htmlpurifier": "~4.8",
"seld/jsonlint": "^1.5",
"symfony/yaml": "^3.2"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"phpunit/phpcov": "^4.0",
"satooshi/php-coveralls": "^1.0",
"codeclimate/php-test-reporter": "dev-master"
},
"suggest":{
"ext-yaml": "Needed to support native yaml parser. Default parser is Symfony Yaml Parser"
},
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Selami\\Entity\\": "src/"
},
"files":[
"src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Selami\\Test\\Abstracts\\": "tests/extend/"
"Selami\\Entity\\" : "./src/"
}
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.3",
"codeception/codeception": "^2.5",
"php-coveralls/php-coveralls": "^2.1",
"object-calisthenics/phpcs-calisthenics-rules": "^3.3"
},
"scripts": {
"unit-tests": "vendor/bin/codecept run unit --coverage",
"phpcs": "vendor/bin/phpcs --standard=PSR2 src tests",
"phpcbf": "vendor/bin/phpcbf --standard=PSR2 src tests",
"phpcs-object-calisthenics": "vendor/bin/phpcs src -sp --standard=vendor/object-calisthenics/phpcs-calisthenics-rules/src/ObjectCalisthenics/ruleset.xml"
}
}
37 changes: 0 additions & 37 deletions phpunit.xml

This file was deleted.

27 changes: 0 additions & 27 deletions src/DataType/Boolean.php

This file was deleted.

100 changes: 0 additions & 100 deletions src/DataType/DataTypeFilterTrait.php

This file was deleted.

26 changes: 0 additions & 26 deletions src/DataType/DataTypeRegexTrait.php

This file was deleted.

Loading

0 comments on commit 1d4c387

Please sign in to comment.