diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 00000000..313d8b09
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,206 @@
+workspace:
+ base: /var/www/owncloud
+ path: apps/activity
+
+branches: [ master, release* ]
+
+pipeline:
+ install-core:
+ image: owncloudci/core
+ version: ${OC_VERSION}
+ pull: true
+ db_type: ${DB_TYPE}
+ db_name: ${DB_NAME}
+ db_host: ${DB_TYPE}
+ db_username: autotest
+ db_password: owncloud
+ when:
+ matrix:
+ NEED_CORE: true
+
+ install-app:
+ image: owncloudci/php:${PHP_VERSION}
+ pull: true
+ commands:
+ - cd /var/www/owncloud/
+ - php occ a:l
+ - php occ a:e activity
+ - php occ a:e testing
+ - php occ a:l
+ - php occ config:system:set trusted_domains 1 --value=owncloud
+ - php occ log:manage --level 0
+ when:
+ matrix:
+ NEED_INSTALL_APP: true
+
+ owncloud-coding-standard:
+ image: owncloudci/php:${PHP_VERSION}
+ pull: true
+ commands:
+ - make test-php-style
+ when:
+ matrix:
+ TEST_SUITE: owncloud-coding-standard
+
+ phpunit-tests:
+ image: owncloudci/php:${PHP_VERSION}
+ pull: true
+ environment:
+ - COVERAGE=${COVERAGE}
+ commands:
+ - if [ -z "${COVERAGE}" ]; then make test-php-unit; fi
+ - if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi
+ when:
+ matrix:
+ TEST_SUITE: phpunit
+
+ js-tests:
+ image: owncloudci/php:${PHP_VERSION}
+ pull: true
+ commands:
+ - make test-js
+ when:
+ matrix:
+ TEST_SUITE: javascript
+
+ codecov:
+ image: plugins/codecov:2
+ secrets: [codecov_token]
+ pull: true
+ paths:
+ - tests/output/clover.xml
+ when:
+ matrix:
+ COVERAGE: true
+
+ notify:
+ image: plugins/slack:1
+ pull: true
+ secrets: [ slack_webhook ]
+ channel: builds
+ when:
+ status: [ failure, changed ]
+ event: [ push, tag ]
+
+services:
+ mysql:
+ image: mysql:5.5
+ environment:
+ - MYSQL_USER=autotest
+ - MYSQL_PASSWORD=owncloud
+ - MYSQL_DATABASE=${DB_NAME}
+ - MYSQL_ROOT_PASSWORD=owncloud
+ when:
+ matrix:
+ DB_TYPE: mysql
+
+ pgsql:
+ image: postgres:9.4
+ environment:
+ - POSTGRES_USER=autotest
+ - POSTGRES_PASSWORD=owncloud
+ - POSTGRES_DB=${DB_NAME}
+ when:
+ matrix:
+ DB_TYPE: pgsql
+
+ oci:
+ image: deepdiver/docker-oracle-xe-11g
+ environment:
+ - ORACLE_USER=system
+ - ORACLE_PASSWORD=oracle
+ - ORACLE_DB=${DB_NAME}
+ when:
+ matrix:
+ DB_TYPE: oci
+
+matrix:
+ include:
+ # owncloud-coding-standard
+ - PHP_VERSION: 5.6
+ TEST_SUITE: owncloud-coding-standard
+
+ # Unit Tests
+ - PHP_VERSION: 5.6
+ OC_VERSION: daily-stable10-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: sqlite
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+
+ - PHP_VERSION: 7.0
+ OC_VERSION: daily-stable10-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: sqlite
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+ COVERAGE: true
+
+ - PHP_VERSION: 7.1
+ OC_VERSION: daily-stable10-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: sqlite
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+ COVERAGE: true
+
+ - PHP_VERSION: 7.2
+ OC_VERSION: daily-stable10-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: sqlite
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+ COVERAGE: true
+
+ - PHP_VERSION: 5.6
+ OC_VERSION: daily-stable10-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: oci
+ DB_NAME: XE
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+
+ - PHP_VERSION: 5.6
+ OC_VERSION: daily-stable10-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: mysql
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+
+ - PHP_VERSION: 5.6
+ OC_VERSION: daily-stable10-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: pgsql
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+
+ - PHP_VERSION: 7.1
+ OC_VERSION: daily-master-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: pgsql
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+ COVERAGE: true
+
+ - PHP_VERSION: 7.2
+ OC_VERSION: daily-master-qa
+ TEST_SUITE: phpunit
+ DB_TYPE: pgsql
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
+
+ - PHP_VERSION: 7.2
+ OC_VERSION: daily-master-qa
+ TEST_SUITE: javascript
+ DB_TYPE: mysql
+ DB_NAME: owncloud
+ NEED_CORE: true
+ NEED_INSTALL_APP: true
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index f903b595..f463ad6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,10 +52,13 @@ nbproject
# Tests - auto-generated files
/tests/coverage*
-/tests/clover.xml
-/tests/js/node_modules
-/vendor/
+/tests/output/clover.xml
+node_modules
+vendor-bin/**/composer.lock
+vendor/
/build/
+tests/Unit/js/package-lock.json
+
# php-cs-fixer
.php_cs.cache
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 8776de4e..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,105 +0,0 @@
-dist: trusty
-sudo: required
-language: php
-php:
- - 5.6
- - 7.0
- - 7.1
- - 7.2
-
-services:
- - docker
-
-addons:
- apt:
- packages:
- - mysql-server-5.6
- - mysql-client-core-5.6
- - mysql-client-5.6
- - alien
- - libaio1
-
-cache:
- directories:
- - $HOME/.cache/bower
- - $HOME/.composer/cache
- - $HOME/.npm
- - docker
- - /tmp/phantomjs
- apt: true
-
-env:
- global:
- - CORE_BRANCH=stable10
- - APP_NAME=activity
- matrix:
- - DB=sqlite
-
-branches:
- only:
- - master
- - /^stable\d+(\.\d+)?$/
-
-before_install:
- - which php
- - more `which pecl`
- - which phpize
- - bash tests/.travis/before_install.sh $APP_NAME $CORE_BRANCH $DB
-
- # Add some output debugging information
- - cd ../core
- - ./occ check
- - ./occ status
- - ./occ app:list
-
-script:
- - cd apps/$APP_NAME/
-
- # Test the app
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then make test-php-style; fi"
- - cd ../../
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi"
- - cd apps/$APP_NAME/
-
- # Run phpunit tests
- - cd tests/
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then ../../../lib/composer/bin/phpunit --configuration phpunit.xml; fi"
-
- # Create coverage report
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
- - cd ../
-
- # Run Javascript unit tests
- - cd tests/js
- - sh -c "if [ '$JSTESTS' = '1' ]; then npm install --deps; node_modules/karma/bin/karma start karma.config.js --single-run; fi"
- - cd ../
-
-after_success:
- - bash <(curl -s https://codecov.io/bash)
-
-matrix:
- include:
- - php: 5.6
- env: DB=oracle
- - php: 5.6
- env: DB=mysql
- - php: 5.6
- env: DB=mysqlmb4
- - php: 5.6
- env: DB=pgsql
- - php: 7.1
- env: DB=pgsql CORE_BRANCH=master
- - php: 7.2
- env: DB=pgsql CORE_BRANCH=master
- - php: 5.6
- env: DB=mysql;CODECHECK=1
- - php: 5.6
- env: DB=mysql;CODECHECK=2
- - php: 5.6
- env: DB=mysql;JSTESTS=1
- allow_failures:
- - env: DB=mysql;CODECHECK=2
- fast_finish: true
diff --git a/Makefile b/Makefile
index f7694e47..69633759 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,19 @@
-SHELL := /bin/bash
-
#
-# Define NPM and check if it is available on the system.
+# Define NPM and COMPOSER_BIN and check if they are available on the system.
#
+SHELL := /bin/bash
+
+COMPOSER_BIN := $(shell command -v composer 2> /dev/null)
+ifndef COMPOSER_BIN
+ $(error composer is not available on your system, please install composer)
+endif
+
NPM := $(shell command -v npm 2> /dev/null)
ifndef NPM
$(error npm is not available on your system, please install npm)
endif
NODE_PREFIX=$(shell pwd)
-
-PHPUNIT="$(PWD)/lib/composer/phpunit/phpunit/phpunit"
BOWER=$(NODE_PREFIX)/node_modules/bower/bin/bower
JSDOC=$(NODE_PREFIX)/node_modules/.bin/jsdoc
@@ -43,6 +46,13 @@ endif
endif
endif
+# bin file definitions
+PHPUNIT=php -d zend.enable_gc=0 "$(PWD)/../../lib/composer/bin/phpunit"
+PHPUNITDBG=phpdbg -qrr -d memory_limit=4096M -d zend.enable_gc=0 "$(PWD)/../../lib/composer/bin/phpunit"
+PHP_CS_FIXER=php -d zend.enable_gc=0 vendor-bin/owncloud-codestyle/vendor/bin/php-cs-fixer
+
+all: build
+
#
# Catch-all rules
#
@@ -52,38 +62,72 @@ all: $(bower_deps)
.PHONY: clean
clean: clean-deps clean-dist clean-build
-#
-# Basic required tools
-#
-$(COMPOSER_BIN):
- mkdir -p $(build_dir)
- cd $(build_dir) && curl -sS https://getcomposer.org/installer | php
-
-#
-# ownCloud core PHP dependencies
-#
-$(composer_deps): $(COMPOSER_BIN) composer.json composer.lock
- php $(COMPOSER_BIN) install --no-dev
+# Fetches the PHP and JS dependencies and compiles the JS. If no composer.json
+# is present, the composer step is skipped, if no package.json or js/package.json
+# is present, the npm step is skipped
+.PHONY: build
+build:
+ifneq (,$(wildcard $(CURDIR)/composer.json))
+ make composer
+endif
+ifneq (,$(wildcard $(CURDIR)/package.json))
+ make npm
+endif
+ifneq (,$(wildcard $(CURDIR)/js/package.json))
+ make npm
+endif
-$(composer_dev_deps): $(COMPOSER_BIN) composer.json composer.lock
- php $(COMPOSER_BIN) install --dev
+# Installs and updates the composer dependencies. If composer is not installed
+# a copy is fetched from the web
+.PHONY: composer
+composer:
+ifeq (, $(composer))
+ @echo "No composer command available, downloading a copy from the web"
+ mkdir -p $(build_tools_directory)
+ curl -sS https://getcomposer.org/installer | php
+ mv composer.phar $(build_tools_directory)
+ php $(build_tools_directory)/composer.phar install --prefer-dist
+ php $(build_tools_directory)/composer.phar update --prefer-dist
+else
+ composer install --prefer-dist
+ composer update --prefer-dist
+endif
+# Installs npm dependencies
+.PHONY: npm
+npm:
+ifeq (,$(wildcard $(CURDIR)/package.json))
+ cd js && $(npm) run build
+else
+ npm run build
+endif
#
-## Node dependencies
+# dist
#
-$(nodejs_deps): package.json
- $(NPM) install --prefix $(NODE_PREFIX) && touch $@
-
-$(BOWER): $(nodejs_deps)
-$(JSDOC): $(nodejs_deps)
-$(bower_deps): $(BOWER)
- $(BOWER) install && touch $@
+# Builds the source and appstore package
+.PHONY: dist
+dist:
+ make appstore
+
+# Builds the source package for the app store, ignores php and js tests
+.PHONY: appstore
+appstore:
+ rm -rf $(appstore_build_directory)
+ mkdir -p $(appstore_package_name)
+ cp --parents -r \
+ appinfo \
+ css \
+ img \
+ js \
+ l10n \
+ lib \
+ templates \
+ LICENSE \
+ README.md \
+ $(appstore_package_name)
-#
-# dist
-#
$(dist_dir)/$(app_name): $(bower_deps)
rm -Rf $@; mkdir -p $@
cp -R $(all_src) $@
@@ -96,6 +140,31 @@ endif
tar -czf $(dist_dir)/$(app_name).tar.gz -C $(dist_dir) $(app_name)
tar -cjf $(dist_dir)/$(app_name).tar.bz2 -C $(dist_dir) $(app_name)
+.PHONY: test-php-unit
+test-php-unit: ## Run php unit tests
+test-php-unit: vendor/bin/phpunit
+ $(PHPUNIT) --configuration ./phpunit.xml --testsuite unit
+
+.PHONY: test-php-unit-dbg
+test-php-unit-dbg: ## Run php unit tests using phpdbg
+test-php-unit-dbg: vendor/bin/phpunit
+ $(PHPUNITDBG) --configuration ./phpunit.xml --testsuite unit
+
+.PHONY: test-js
+test-js:
+ cd tests/Unit/js && npm install --deps
+ cd tests/Unit/js && node_modules/karma/bin/karma start karma.config.js --single-run
+
+.PHONY: test-php-style
+test-php-style: ## Run php-cs-fixer and check owncloud code-style
+test-php-style: vendor-bin/owncloud-codestyle/vendor
+ $(PHP_CS_FIXER) fix -v --diff --diff-format udiff --allow-risky yes --dry-run
+
+.PHONY: test-php-style-fix
+test-php-style-fix: ## Run php-cs-fixer and fix code style issues
+test-php-style-fix: vendor-bin/owncloud-codestyle/vendor
+ $(PHP_CS_FIXER) fix -v --diff --diff-format udiff --allow-risky yes
+
.PHONY: dist
dist: clean-dist $(dist_dir)/$(app_name)
@@ -111,7 +180,25 @@ clean-build:
clean-deps:
rm -Rf $(nodejs_deps) $(bower_deps) ${composer_deps}
+#
+# Dependency management
+#--------------------------------------
+
+composer.lock: composer.json
+ @echo composer.lock is not up to date.
+
+vendor: composer.lock
+ composer install --no-dev
+
+vendor/bin/phpunit: composer.lock
+ composer install
+
+vendor/bamarni/composer-bin-plugin: composer.lock
+ composer install
+
+vendor-bin/owncloud-codestyle/vendor: vendor/bamarni/composer-bin-plugin vendor-bin/owncloud-codestyle/composer.lock
+ composer bin owncloud-codestyle install --no-progress
+
+vendor-bin/owncloud-codestyle/composer.lock: vendor-bin/owncloud-codestyle/composer.json
+ @echo owncloud-codestyle composer.lock is not up to date.
-.PHONY: test-php-style
-test-php-style: $(composer_dev_deps)
- $(composer_deps)/bin/php-cs-fixer fix -v --diff --diff-format udiff --dry-run --allow-risky yes
diff --git a/composer.json b/composer.json
index f53d2ee2..83165cf5 100644
--- a/composer.json
+++ b/composer.json
@@ -1,10 +1,18 @@
{
- "config" : {
- "platform": {
- "php": "7.1"
- }
- },
- "require-dev": {
- "owncloud/coding-standard": "^1.0"
+ "name": "owncloud/activity",
+ "config" : {
+ "platform": {
+ "php": "5.6.37"
}
+ },
+ "require": {
+ },
+ "require-dev": {
+ "bamarni/composer-bin-plugin": "^1.2"
+ },
+ "extra": {
+ "bamarni-bin": {
+ "bin-links": false
+ }
+ }
}
diff --git a/composer.lock b/composer.lock
index 5733df52..9c1840d0 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1,99 +1,84 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "content-hash": "179ed3b7889f3614ff293a34074218f2",
+ "content-hash": "ef472d2c739b6bf2ebf50aa4af37bc3c",
"packages": [],
"packages-dev": [
{
- "name": "composer/semver",
- "version": "1.4.2",
+ "name": "bamarni/composer-bin-plugin",
+ "version": "v1.2.0",
"source": {
"type": "git",
- "url": "https://github.com/composer/semver.git",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573"
+ "url": "https://github.com/bamarni/composer-bin-plugin.git",
+ "reference": "62fef740245a85f00665e81ea8f0aa0b72afe6e7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573",
- "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573",
+ "url": "https://api.github.com/repos/bamarni/composer-bin-plugin/zipball/62fef740245a85f00665e81ea8f0aa0b72afe6e7",
+ "reference": "62fef740245a85f00665e81ea8f0aa0b72afe6e7",
"shasum": ""
},
"require": {
- "php": "^5.3.2 || ^7.0"
+ "composer-plugin-api": "^1.0"
},
"require-dev": {
- "phpunit/phpunit": "^4.5 || ^5.0.5",
- "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0"
+ "composer/composer": "dev-master",
+ "symfony/console": "^2.5 || ^3.0"
},
- "type": "library",
+ "type": "composer-plugin",
"extra": {
+ "class": "Bamarni\\Composer\\Bin\\Plugin",
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-master": "1.1-dev"
}
},
"autoload": {
"psr-4": {
- "Composer\\Semver\\": "src"
+ "Bamarni\\Composer\\Bin\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
- "authors": [
- {
- "name": "Nils Adermann",
- "email": "naderman@naderman.de",
- "homepage": "http://www.naderman.de"
- },
- {
- "name": "Jordi Boggiano",
- "email": "j.boggiano@seld.be",
- "homepage": "http://seld.be"
- },
- {
- "name": "Rob Bast",
- "email": "rob.bast@gmail.com",
- "homepage": "http://robbast.nl"
- }
- ],
- "description": "Semver library that offers utilities, version constraint parsing and validation.",
- "keywords": [
- "semantic",
- "semver",
- "validation",
- "versioning"
- ],
- "time": "2016-08-30T16:08:34+00:00"
+ "time": "2017-09-11T13:13:58+00:00"
},
{
- "name": "composer/xdebug-handler",
- "version": "1.1.0",
+ "name": "doctrine/instantiator",
+ "version": "1.0.5",
"source": {
"type": "git",
- "url": "https://github.com/composer/xdebug-handler.git",
- "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08"
+ "url": "https://github.com/doctrine/instantiator.git",
+ "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/c919dc6c62e221fc6406f861ea13433c0aa24f08",
- "reference": "c919dc6c62e221fc6406f861ea13433c0aa24f08",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
+ "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
"shasum": ""
},
"require": {
- "php": "^5.3.2 || ^7.0",
- "psr/log": "^1.0"
+ "php": ">=5.3,<8.0-DEV"
},
"require-dev": {
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
+ "athletic/athletic": "~0.1.8",
+ "ext-pdo": "*",
+ "ext-phar": "*",
+ "phpunit/phpunit": "~4.0",
+ "squizlabs/php_codesniffer": "~2.0"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
"autoload": {
"psr-4": {
- "Composer\\XdebugHandler\\": "src"
+ "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -102,101 +87,131 @@
],
"authors": [
{
- "name": "John Stevenson",
- "email": "john-stevenson@blueyonder.co.uk"
+ "name": "Marco Pivetta",
+ "email": "ocramius@gmail.com",
+ "homepage": "http://ocramius.github.com/"
}
],
- "description": "Restarts a process without xdebug.",
+ "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
+ "homepage": "https://github.com/doctrine/instantiator",
"keywords": [
- "Xdebug",
- "performance"
+ "constructor",
+ "instantiate"
],
- "time": "2018-04-11T15:42:36+00:00"
+ "time": "2015-06-14T21:17:01+00:00"
},
{
- "name": "doctrine/annotations",
- "version": "v1.6.0",
+ "name": "jakub-onderka/php-parallel-lint",
+ "version": "v1.0.0",
"source": {
"type": "git",
- "url": "https://github.com/doctrine/annotations.git",
- "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5"
+ "url": "https://github.com/JakubOnderka/PHP-Parallel-Lint.git",
+ "reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/annotations/zipball/c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5",
- "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5",
+ "url": "https://api.github.com/repos/JakubOnderka/PHP-Parallel-Lint/zipball/04fbd3f5fb1c83f08724aa58a23db90bd9086ee8",
+ "reference": "04fbd3f5fb1c83f08724aa58a23db90bd9086ee8",
"shasum": ""
},
"require": {
- "doctrine/lexer": "1.*",
- "php": "^7.1"
+ "php": ">=5.3.3"
},
"require-dev": {
- "doctrine/cache": "1.*",
- "phpunit/phpunit": "^6.4"
+ "jakub-onderka/php-console-highlighter": "~0.3",
+ "nette/tester": "~1.3",
+ "squizlabs/php_codesniffer": "~2.7"
},
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.6.x-dev"
- }
+ "suggest": {
+ "jakub-onderka/php-console-highlighter": "Highlight syntax in code snippet"
},
+ "bin": [
+ "parallel-lint"
+ ],
+ "type": "library",
"autoload": {
- "psr-4": {
- "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
- }
+ "classmap": [
+ "./"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-2-Clause"
],
"authors": [
{
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Benjamin Eberlei",
- "email": "kontakt@beberlei.de"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Jonathan Wage",
- "email": "jonwage@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
+ "name": "Jakub Onderka",
+ "email": "ahoj@jakubonderka.cz"
}
],
- "description": "Docblock Annotations Parser",
- "homepage": "http://www.doctrine-project.org",
+ "description": "This tool check syntax of PHP files about 20x faster than serial check.",
+ "homepage": "https://github.com/JakubOnderka/PHP-Parallel-Lint",
+ "time": "2018-02-24T15:31:20+00:00"
+ },
+ {
+ "name": "myclabs/deep-copy",
+ "version": "1.7.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/myclabs/DeepCopy.git",
+ "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
+ "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "require-dev": {
+ "doctrine/collections": "^1.0",
+ "doctrine/common": "^2.6",
+ "phpunit/phpunit": "^4.1"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "DeepCopy\\": "src/DeepCopy/"
+ },
+ "files": [
+ "src/DeepCopy/deep_copy.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "Create deep copies (clones) of your objects",
"keywords": [
- "annotations",
- "docblock",
- "parser"
+ "clone",
+ "copy",
+ "duplicate",
+ "object",
+ "object graph"
],
- "time": "2017-12-06T07:11:42+00:00"
+ "time": "2017-10-19T19:58:43+00:00"
},
{
- "name": "doctrine/lexer",
- "version": "v1.0.1",
+ "name": "phpdocumentor/reflection-common",
+ "version": "1.0.1",
"source": {
"type": "git",
- "url": "https://github.com/doctrine/lexer.git",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c"
+ "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
+ "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c",
- "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
+ "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
"shasum": ""
},
"require": {
- "php": ">=5.3.2"
+ "php": ">=5.5"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.6"
},
"type": "library",
"extra": {
@@ -205,8 +220,10 @@
}
},
"autoload": {
- "psr-0": {
- "Doctrine\\Common\\Lexer\\": "lib/"
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": [
+ "src"
+ ]
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -215,99 +232,52 @@
],
"authors": [
{
- "name": "Roman Borschel",
- "email": "roman@code-factory.org"
- },
- {
- "name": "Guilherme Blanco",
- "email": "guilhermeblanco@gmail.com"
- },
- {
- "name": "Johannes Schmitt",
- "email": "schmittjoh@gmail.com"
+ "name": "Jaap van Otterdijk",
+ "email": "opensource@ijaap.nl"
}
],
- "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
- "homepage": "http://www.doctrine-project.org",
+ "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
+ "homepage": "http://www.phpdoc.org",
"keywords": [
- "lexer",
- "parser"
+ "FQSEN",
+ "phpDocumentor",
+ "phpdoc",
+ "reflection",
+ "static analysis"
],
- "time": "2014-09-09T13:34:57+00:00"
+ "time": "2017-09-11T18:02:19+00:00"
},
{
- "name": "friendsofphp/php-cs-fixer",
- "version": "v2.12.2",
+ "name": "phpdocumentor/reflection-docblock",
+ "version": "3.3.2",
"source": {
"type": "git",
- "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
- "reference": "dcc87d5414e9d0bd316fce81a5bedb9ce720b183"
+ "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
+ "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/dcc87d5414e9d0bd316fce81a5bedb9ce720b183",
- "reference": "dcc87d5414e9d0bd316fce81a5bedb9ce720b183",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
+ "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
"shasum": ""
},
"require": {
- "composer/semver": "^1.4",
- "composer/xdebug-handler": "^1.0",
- "doctrine/annotations": "^1.2",
- "ext-json": "*",
- "ext-tokenizer": "*",
- "php": "^5.6 || >=7.0 <7.3",
- "php-cs-fixer/diff": "^1.3",
- "symfony/console": "^3.2 || ^4.0",
- "symfony/event-dispatcher": "^3.0 || ^4.0",
- "symfony/filesystem": "^3.0 || ^4.0",
- "symfony/finder": "^3.0 || ^4.0",
- "symfony/options-resolver": "^3.0 || ^4.0",
- "symfony/polyfill-php70": "^1.0",
- "symfony/polyfill-php72": "^1.4",
- "symfony/process": "^3.0 || ^4.0",
- "symfony/stopwatch": "^3.0 || ^4.0"
- },
- "conflict": {
- "hhvm": "*"
+ "php": "^5.6 || ^7.0",
+ "phpdocumentor/reflection-common": "^1.0.0",
+ "phpdocumentor/type-resolver": "^0.4.0",
+ "webmozart/assert": "^1.0"
},
"require-dev": {
- "johnkary/phpunit-speedtrap": "^1.1 || ^2.0 || ^3.0",
- "justinrainbow/json-schema": "^5.0",
- "keradus/cli-executor": "^1.1",
- "mikey179/vfsstream": "^1.6",
- "php-coveralls/php-coveralls": "^2.1",
- "php-cs-fixer/accessible-object": "^1.0",
- "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.0.1",
- "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.0.1",
- "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1",
- "phpunitgoodpractices/traits": "^1.5.1",
- "symfony/phpunit-bridge": "^4.0"
- },
- "suggest": {
- "ext-mbstring": "For handling non-UTF8 characters in cache signature.",
- "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.",
- "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.",
- "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible."
+ "mockery/mockery": "^0.9.4",
+ "phpunit/phpunit": "^4.4"
},
- "bin": [
- "php-cs-fixer"
- ],
- "type": "application",
+ "type": "library",
"autoload": {
"psr-4": {
- "PhpCsFixer\\": "src/"
- },
- "classmap": [
- "tests/Test/AbstractFixerTestCase.php",
- "tests/Test/AbstractIntegrationCaseFactory.php",
- "tests/Test/AbstractIntegrationTestCase.php",
- "tests/Test/Assert/AssertTokensTrait.php",
- "tests/Test/IntegrationCase.php",
- "tests/Test/IntegrationCaseFactory.php",
- "tests/Test/IntegrationCaseFactoryInterface.php",
- "tests/Test/InternalIntegrationCaseFactory.php",
- "tests/TestCase.php"
- ]
+ "phpDocumentor\\Reflection\\": [
+ "src/"
+ ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -315,94 +285,95 @@
],
"authors": [
{
- "name": "Dariusz Rumiński",
- "email": "dariusz.ruminski@gmail.com"
- },
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
}
],
- "description": "A tool to automatically fix PHP code style",
- "time": "2018-07-06T10:37:40+00:00"
+ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
+ "time": "2017-11-10T14:09:06+00:00"
},
{
- "name": "owncloud/coding-standard",
- "version": "1.0.1",
+ "name": "phpdocumentor/type-resolver",
+ "version": "0.4.0",
"source": {
"type": "git",
- "url": "https://github.com/owncloud/coding-standard.git",
- "reference": "548ba3b83e590e946a5aa1da33f7f4c8a55e61c5"
+ "url": "https://github.com/phpDocumentor/TypeResolver.git",
+ "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/owncloud/coding-standard/zipball/548ba3b83e590e946a5aa1da33f7f4c8a55e61c5",
- "reference": "548ba3b83e590e946a5aa1da33f7f4c8a55e61c5",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
+ "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
"shasum": ""
},
"require": {
- "friendsofphp/php-cs-fixer": "^2.11"
+ "php": "^5.5 || ^7.0",
+ "phpdocumentor/reflection-common": "^1.0"
+ },
+ "require-dev": {
+ "mockery/mockery": "^0.9.4",
+ "phpunit/phpunit": "^5.2||^4.8.24"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
"autoload": {
"psr-4": {
- "OC\\CodingStandard\\": "src"
+ "phpDocumentor\\Reflection\\": [
+ "src/"
+ ]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "AGPL-3.0"
+ "MIT"
],
"authors": [
{
- "name": "Thomas Müller",
- "email": "thomas.mueller@tmit.eu"
- },
- {
- "name": "Patrick Jahns",
- "email": "github@patrickjahns.de"
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
}
],
- "description": "ownCloud Coding Standard",
- "homepage": "http://www.owncloud.org",
- "keywords": [
- "code",
- "coding",
- "owncloud",
- "php-cs-fixer",
- "standard",
- "style"
- ],
- "time": "2018-05-16T13:47:45+00:00"
+ "time": "2017-07-14T14:27:02+00:00"
},
{
- "name": "paragonie/random_compat",
- "version": "v2.0.17",
+ "name": "phpspec/prophecy",
+ "version": "1.8.0",
"source": {
"type": "git",
- "url": "https://github.com/paragonie/random_compat.git",
- "reference": "29af24f25bab834fcbb38ad2a69fa93b867e070d"
+ "url": "https://github.com/phpspec/prophecy.git",
+ "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/paragonie/random_compat/zipball/29af24f25bab834fcbb38ad2a69fa93b867e070d",
- "reference": "29af24f25bab834fcbb38ad2a69fa93b867e070d",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
+ "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
"shasum": ""
},
"require": {
- "php": ">=5.2.0"
+ "doctrine/instantiator": "^1.0.2",
+ "php": "^5.3|^7.0",
+ "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
+ "sebastian/comparator": "^1.1|^2.0|^3.0",
+ "sebastian/recursion-context": "^1.0|^2.0|^3.0"
},
"require-dev": {
- "phpunit/phpunit": "4.*|5.*"
- },
- "suggest": {
- "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
+ "phpspec/phpspec": "^2.5|^3.2",
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.8.x-dev"
+ }
+ },
"autoload": {
- "files": [
- "lib/random.php"
- ]
+ "psr-0": {
+ "Prophecy\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -410,42 +381,65 @@
],
"authors": [
{
- "name": "Paragon Initiative Enterprises",
- "email": "security@paragonie.com",
- "homepage": "https://paragonie.com"
+ "name": "Konstantin Kudryashov",
+ "email": "ever.zet@gmail.com",
+ "homepage": "http://everzet.com"
+ },
+ {
+ "name": "Marcello Duarte",
+ "email": "marcello.duarte@gmail.com"
}
],
- "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
+ "description": "Highly opinionated mocking framework for PHP 5.3+",
+ "homepage": "https://github.com/phpspec/prophecy",
"keywords": [
- "csprng",
- "polyfill",
- "pseudorandom",
- "random"
+ "Double",
+ "Dummy",
+ "fake",
+ "mock",
+ "spy",
+ "stub"
],
- "time": "2018-07-04T16:31:37+00:00"
+ "time": "2018-08-05T17:53:17+00:00"
},
{
- "name": "php-cs-fixer/diff",
- "version": "v1.3.0",
+ "name": "phpunit/php-code-coverage",
+ "version": "4.0.8",
"source": {
"type": "git",
- "url": "https://github.com/PHP-CS-Fixer/diff.git",
- "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756"
+ "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
+ "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/78bb099e9c16361126c86ce82ec4405ebab8e756",
- "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
+ "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0"
+ "ext-dom": "*",
+ "ext-xmlwriter": "*",
+ "php": "^5.6 || ^7.0",
+ "phpunit/php-file-iterator": "^1.3",
+ "phpunit/php-text-template": "^1.2",
+ "phpunit/php-token-stream": "^1.4.2 || ^2.0",
+ "sebastian/code-unit-reverse-lookup": "^1.0",
+ "sebastian/environment": "^1.3.2 || ^2.0",
+ "sebastian/version": "^1.0 || ^2.0"
},
"require-dev": {
- "phpunit/phpunit": "^5.7.23 || ^6.4.3",
- "symfony/process": "^3.3"
+ "ext-xdebug": "^2.1.4",
+ "phpunit/phpunit": "^5.7"
+ },
+ "suggest": {
+ "ext-xdebug": "^2.5.1"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.0.x-dev"
+ }
+ },
"autoload": {
"classmap": [
"src/"
@@ -456,612 +450,890 @@
"BSD-3-Clause"
],
"authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
- },
- {
- "name": "SpacePossum"
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
}
],
- "description": "sebastian/diff v2 backport support for PHP5.6",
- "homepage": "https://github.com/PHP-CS-Fixer",
+ "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
+ "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
"keywords": [
- "diff"
+ "coverage",
+ "testing",
+ "xunit"
],
- "time": "2018-02-15T16:58:55+00:00"
+ "time": "2017-04-02T07:44:40+00:00"
},
{
- "name": "psr/log",
- "version": "1.0.2",
+ "name": "phpunit/php-file-iterator",
+ "version": "1.4.5",
"source": {
"type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
+ "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
+ "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
+ "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
"shasum": ""
},
"require": {
- "php": ">=5.3.0"
+ "php": ">=5.3.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "1.4.x-dev"
}
},
"autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
+ "classmap": [
+ "src/"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
+ "name": "Sebastian Bergmann",
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
}
],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
+ "description": "FilterIterator implementation that filters files based on a list of suffixes.",
+ "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
"keywords": [
- "log",
- "psr",
- "psr-3"
+ "filesystem",
+ "iterator"
],
- "time": "2016-10-10T12:19:37+00:00"
+ "time": "2017-11-27T13:52:08+00:00"
},
{
- "name": "symfony/console",
- "version": "v3.4.12",
+ "name": "phpunit/php-text-template",
+ "version": "1.2.1",
"source": {
"type": "git",
- "url": "https://github.com/symfony/console.git",
- "reference": "1b97071a26d028c9bd4588264e101e14f6e7cd00"
+ "url": "https://github.com/sebastianbergmann/php-text-template.git",
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/1b97071a26d028c9bd4588264e101e14f6e7cd00",
- "reference": "1b97071a26d028c9bd4588264e101e14f6e7cd00",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/debug": "~2.8|~3.0|~4.0",
- "symfony/polyfill-mbstring": "~1.0"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.4",
- "symfony/process": "<3.3"
- },
- "require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~3.3|~4.0",
- "symfony/dependency-injection": "~3.4|~4.0",
- "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
- "symfony/lock": "~3.4|~4.0",
- "symfony/process": "~3.3|~4.0"
- },
- "suggest": {
- "psr/log-implementation": "For using the console logger",
- "symfony/event-dispatcher": "",
- "symfony/lock": "",
- "symfony/process": ""
+ "php": ">=5.3.3"
},
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.4-dev"
- }
- },
"autoload": {
- "psr-4": {
- "Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2018-05-23T05:02:55+00:00"
+ "description": "Simple template engine.",
+ "homepage": "https://github.com/sebastianbergmann/php-text-template/",
+ "keywords": [
+ "template"
+ ],
+ "time": "2015-06-21T13:50:34+00:00"
},
{
- "name": "symfony/debug",
- "version": "v3.4.12",
+ "name": "phpunit/php-timer",
+ "version": "1.0.9",
"source": {
"type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "47e6788c5b151cf0cfdf3329116bf33800632d75"
+ "url": "https://github.com/sebastianbergmann/php-timer.git",
+ "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/47e6788c5b151cf0cfdf3329116bf33800632d75",
- "reference": "47e6788c5b151cf0cfdf3329116bf33800632d75",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
+ "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
+ "php": "^5.3.3 || ^7.0"
},
"require-dev": {
- "symfony/http-kernel": "~2.8|~3.0|~4.0"
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.4-dev"
+ "dev-master": "1.0-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
}
],
- "description": "Symfony Debug Component",
- "homepage": "https://symfony.com",
- "time": "2018-06-25T11:10:40+00:00"
+ "description": "Utility class for timing",
+ "homepage": "https://github.com/sebastianbergmann/php-timer/",
+ "keywords": [
+ "timer"
+ ],
+ "time": "2017-02-26T11:10:40+00:00"
},
{
- "name": "symfony/event-dispatcher",
- "version": "v3.4.12",
+ "name": "phpunit/php-token-stream",
+ "version": "1.4.12",
"source": {
"type": "git",
- "url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "fdd5abcebd1061ec647089c6c41a07ed60af09f8"
+ "url": "https://github.com/sebastianbergmann/php-token-stream.git",
+ "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/fdd5abcebd1061ec647089c6c41a07ed60af09f8",
- "reference": "fdd5abcebd1061ec647089c6c41a07ed60af09f8",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
+ "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8"
- },
- "conflict": {
- "symfony/dependency-injection": "<3.3"
+ "ext-tokenizer": "*",
+ "php": ">=5.3.3"
},
"require-dev": {
- "psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0|~4.0",
- "symfony/dependency-injection": "~3.3|~4.0",
- "symfony/expression-language": "~2.8|~3.0|~4.0",
- "symfony/stopwatch": "~2.8|~3.0|~4.0"
- },
- "suggest": {
- "symfony/dependency-injection": "",
- "symfony/http-kernel": ""
+ "phpunit/phpunit": "~4.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.4-dev"
+ "dev-master": "1.4-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
}
],
- "description": "Symfony EventDispatcher Component",
- "homepage": "https://symfony.com",
- "time": "2018-04-06T07:35:25+00:00"
+ "description": "Wrapper around PHP's tokenizer extension.",
+ "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
+ "keywords": [
+ "tokenizer"
+ ],
+ "time": "2017-12-04T08:55:13+00:00"
},
{
- "name": "symfony/filesystem",
- "version": "v3.4.12",
+ "name": "phpunit/phpunit",
+ "version": "5.7.27",
"source": {
"type": "git",
- "url": "https://github.com/symfony/filesystem.git",
- "reference": "8a721a5f2553c6c3482b1c5b22ed60fe94dd63ed"
+ "url": "https://github.com/sebastianbergmann/phpunit.git",
+ "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/8a721a5f2553c6c3482b1c5b22ed60fe94dd63ed",
- "reference": "8a721a5f2553c6c3482b1c5b22ed60fe94dd63ed",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
+ "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8",
- "symfony/polyfill-ctype": "~1.8"
+ "ext-dom": "*",
+ "ext-json": "*",
+ "ext-libxml": "*",
+ "ext-mbstring": "*",
+ "ext-xml": "*",
+ "myclabs/deep-copy": "~1.3",
+ "php": "^5.6 || ^7.0",
+ "phpspec/prophecy": "^1.6.2",
+ "phpunit/php-code-coverage": "^4.0.4",
+ "phpunit/php-file-iterator": "~1.4",
+ "phpunit/php-text-template": "~1.2",
+ "phpunit/php-timer": "^1.0.6",
+ "phpunit/phpunit-mock-objects": "^3.2",
+ "sebastian/comparator": "^1.2.4",
+ "sebastian/diff": "^1.4.3",
+ "sebastian/environment": "^1.3.4 || ^2.0",
+ "sebastian/exporter": "~2.0",
+ "sebastian/global-state": "^1.1",
+ "sebastian/object-enumerator": "~2.0",
+ "sebastian/resource-operations": "~1.0",
+ "sebastian/version": "^1.0.6|^2.0.1",
+ "symfony/yaml": "~2.1|~3.0|~4.0"
+ },
+ "conflict": {
+ "phpdocumentor/reflection-docblock": "3.0.2"
},
+ "require-dev": {
+ "ext-pdo": "*"
+ },
+ "suggest": {
+ "ext-xdebug": "*",
+ "phpunit/php-invoker": "~1.1"
+ },
+ "bin": [
+ "phpunit"
+ ],
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.4-dev"
+ "dev-master": "5.7.x-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Symfony Filesystem Component",
- "homepage": "https://symfony.com",
- "time": "2018-06-21T11:10:19+00:00"
+ "description": "The PHP Unit Testing framework.",
+ "homepage": "https://phpunit.de/",
+ "keywords": [
+ "phpunit",
+ "testing",
+ "xunit"
+ ],
+ "time": "2018-02-01T05:50:59+00:00"
},
{
- "name": "symfony/finder",
- "version": "v3.4.12",
+ "name": "phpunit/phpunit-mock-objects",
+ "version": "3.4.4",
"source": {
"type": "git",
- "url": "https://github.com/symfony/finder.git",
- "reference": "3a8c3de91d2b2c68cd2d665cf9d00f7ef9eaa394"
+ "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
+ "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/3a8c3de91d2b2c68cd2d665cf9d00f7ef9eaa394",
- "reference": "3a8c3de91d2b2c68cd2d665cf9d00f7ef9eaa394",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
+ "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8"
+ "doctrine/instantiator": "^1.0.2",
+ "php": "^5.6 || ^7.0",
+ "phpunit/php-text-template": "^1.2",
+ "sebastian/exporter": "^1.2 || ^2.0"
+ },
+ "conflict": {
+ "phpunit/phpunit": "<5.4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^5.4"
+ },
+ "suggest": {
+ "ext-soap": "*"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.4-dev"
+ "dev-master": "3.2.x-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
+ "name": "Sebastian Bergmann",
+ "email": "sb@sebastian-bergmann.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Mock Object library for PHPUnit",
+ "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
+ "keywords": [
+ "mock",
+ "xunit"
+ ],
+ "time": "2017-06-30T09:13:00+00:00"
+ },
+ {
+ "name": "sebastian/code-unit-reverse-lookup",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
+ "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
+ "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^5.7 || ^6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
{
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
}
],
- "description": "Symfony Finder Component",
- "homepage": "https://symfony.com",
- "time": "2018-06-19T20:52:10+00:00"
+ "description": "Looks up which function or method a line of code belongs to",
+ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
+ "time": "2017-03-04T06:30:41+00:00"
},
{
- "name": "symfony/options-resolver",
- "version": "v3.4.12",
+ "name": "sebastian/comparator",
+ "version": "1.2.4",
"source": {
"type": "git",
- "url": "https://github.com/symfony/options-resolver.git",
- "reference": "cc5e98ed91688a22a7162a8800096356f9076b1d"
+ "url": "https://github.com/sebastianbergmann/comparator.git",
+ "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/options-resolver/zipball/cc5e98ed91688a22a7162a8800096356f9076b1d",
- "reference": "cc5e98ed91688a22a7162a8800096356f9076b1d",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
+ "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8"
+ "php": ">=5.3.3",
+ "sebastian/diff": "~1.2",
+ "sebastian/exporter": "~1.2 || ~2.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.4"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.4-dev"
+ "dev-master": "1.2.x-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Component\\OptionsResolver\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
},
{
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@2bepublished.at"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
}
],
- "description": "Symfony OptionsResolver Component",
- "homepage": "https://symfony.com",
+ "description": "Provides the functionality to compare PHP values for equality",
+ "homepage": "http://www.github.com/sebastianbergmann/comparator",
"keywords": [
- "config",
- "configuration",
- "options"
+ "comparator",
+ "compare",
+ "equality"
],
- "time": "2018-05-30T04:26:49+00:00"
+ "time": "2017-01-29T09:50:25+00:00"
},
{
- "name": "symfony/polyfill-ctype",
- "version": "v1.8.0",
+ "name": "sebastian/diff",
+ "version": "1.4.3",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "7cc359f1b7b80fc25ed7796be7d96adc9b354bae"
+ "url": "https://github.com/sebastianbergmann/diff.git",
+ "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7cc359f1b7b80fc25ed7796be7d96adc9b354bae",
- "reference": "7cc359f1b7b80fc25ed7796be7d96adc9b354bae",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
+ "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": "^5.3.3 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.8-dev"
+ "dev-master": "1.4-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Ctype\\": ""
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
},
- "files": [
- "bootstrap.php"
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Diff implementation",
+ "homepage": "https://github.com/sebastianbergmann/diff",
+ "keywords": [
+ "diff"
+ ],
+ "time": "2017-05-22T07:24:03+00:00"
+ },
+ {
+ "name": "sebastian/environment",
+ "version": "2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/environment.git",
+ "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
+ "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^5.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Provides functionality to handle HHVM/PHP environments",
+ "homepage": "http://www.github.com/sebastianbergmann/environment",
+ "keywords": [
+ "Xdebug",
+ "environment",
+ "hhvm"
+ ],
+ "time": "2016-11-26T07:53:53+00:00"
+ },
+ {
+ "name": "sebastian/exporter",
+ "version": "2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/exporter.git",
+ "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
+ "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3",
+ "sebastian/recursion-context": "~2.0"
+ },
+ "require-dev": {
+ "ext-mbstring": "*",
+ "phpunit/phpunit": "~4.4"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
},
{
- "name": "Gert de Pagter",
- "email": "BackEndTea@gmail.com"
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@2bepublished.at"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
}
],
- "description": "Symfony polyfill for ctype functions",
- "homepage": "https://symfony.com",
+ "description": "Provides the functionality to export PHP variables for visualization",
+ "homepage": "http://www.github.com/sebastianbergmann/exporter",
"keywords": [
- "compatibility",
- "ctype",
- "polyfill",
- "portable"
+ "export",
+ "exporter"
],
- "time": "2018-04-30T19:57:29+00:00"
+ "time": "2016-11-19T08:54:04+00:00"
},
{
- "name": "symfony/polyfill-mbstring",
- "version": "v1.8.0",
+ "name": "sebastian/global-state",
+ "version": "1.1.1",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "3296adf6a6454a050679cde90f95350ad604b171"
+ "url": "https://github.com/sebastianbergmann/global-state.git",
+ "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/3296adf6a6454a050679cde90f95350ad604b171",
- "reference": "3296adf6a6454a050679cde90f95350ad604b171",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
+ "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
+ "require-dev": {
+ "phpunit/phpunit": "~4.2"
+ },
"suggest": {
- "ext-mbstring": "For best performance"
+ "ext-uopz": "*"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.8-dev"
+ "dev-master": "1.0-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
+ "classmap": [
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
}
],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
+ "description": "Snapshotting of global state",
+ "homepage": "http://www.github.com/sebastianbergmann/global-state",
"keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
+ "global state"
+ ],
+ "time": "2015-10-12T03:26:01+00:00"
+ },
+ {
+ "name": "sebastian/object-enumerator",
+ "version": "2.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/object-enumerator.git",
+ "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
+ "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.6",
+ "sebastian/recursion-context": "~2.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
],
- "time": "2018-04-26T10:06:28+00:00"
+ "description": "Traverses array structures and object graphs to enumerate all referenced objects",
+ "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
+ "time": "2017-02-18T15:18:39+00:00"
},
{
- "name": "symfony/polyfill-php70",
- "version": "v1.8.0",
+ "name": "sebastian/recursion-context",
+ "version": "2.0.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-php70.git",
- "reference": "77454693d8f10dd23bb24955cffd2d82db1007a6"
+ "url": "https://github.com/sebastianbergmann/recursion-context.git",
+ "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/77454693d8f10dd23bb24955cffd2d82db1007a6",
- "reference": "77454693d8f10dd23bb24955cffd2d82db1007a6",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
+ "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
"shasum": ""
},
"require": {
- "paragonie/random_compat": "~1.0|~2.0",
"php": ">=5.3.3"
},
+ "require-dev": {
+ "phpunit/phpunit": "~4.4"
+ },
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.8-dev"
+ "dev-master": "2.0.x-dev"
}
},
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php70\\": ""
- },
- "files": [
- "bootstrap.php"
- ],
"classmap": [
- "Resources/stubs"
+ "src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "MIT"
+ "BSD-3-Clause"
],
"authors": [
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
},
{
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
}
],
- "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
+ "description": "Provides functionality to recursively process PHP variables",
+ "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
+ "time": "2016-11-19T07:33:16+00:00"
+ },
+ {
+ "name": "sebastian/resource-operations",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/resource-operations.git",
+ "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
+ "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Provides a list of PHP built-in functions that operate on resources",
+ "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
+ "time": "2015-07-28T20:34:47+00:00"
+ },
+ {
+ "name": "sebastian/version",
+ "version": "2.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/version.git",
+ "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
+ "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.6"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
],
- "time": "2018-04-26T10:06:28+00:00"
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library that helps with managing the version number of Git-hosted PHP projects",
+ "homepage": "https://github.com/sebastianbergmann/version",
+ "time": "2016-10-03T07:35:21+00:00"
},
{
- "name": "symfony/polyfill-php72",
- "version": "v1.8.0",
+ "name": "symfony/polyfill-ctype",
+ "version": "v1.10.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-php72.git",
- "reference": "a4576e282d782ad82397f3e4ec1df8e0f0cafb46"
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/a4576e282d782ad82397f3e4ec1df8e0f0cafb46",
- "reference": "a4576e282d782ad82397f3e4ec1df8e0f0cafb46",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
+ "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.8-dev"
+ "dev-master": "1.9-dev"
}
},
"autoload": {
"psr-4": {
- "Symfony\\Polyfill\\Php72\\": ""
+ "Symfony\\Polyfill\\Ctype\\": ""
},
"files": [
"bootstrap.php"
@@ -1072,41 +1344,51 @@
"MIT"
],
"authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
+ },
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
}
],
- "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
+ "description": "Symfony polyfill for ctype functions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
+ "ctype",
"polyfill",
- "portable",
- "shim"
+ "portable"
],
- "time": "2018-04-26T10:06:28+00:00"
+ "time": "2018-08-06T14:22:27+00:00"
},
{
- "name": "symfony/process",
- "version": "v3.4.12",
+ "name": "symfony/yaml",
+ "version": "v3.4.18",
"source": {
"type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "acc5a37c706ace827962851b69705b24e71ca17c"
+ "url": "https://github.com/symfony/yaml.git",
+ "reference": "640b6c27fed4066d64b64d5903a86043f4a4de7f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/acc5a37c706ace827962851b69705b24e71ca17c",
- "reference": "acc5a37c706ace827962851b69705b24e71ca17c",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/640b6c27fed4066d64b64d5903a86043f4a4de7f",
+ "reference": "640b6c27fed4066d64b64d5903a86043f4a4de7f",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8"
+ "php": "^5.5.9|>=7.0.8",
+ "symfony/polyfill-ctype": "~1.8"
+ },
+ "conflict": {
+ "symfony/console": "<3.4"
+ },
+ "require-dev": {
+ "symfony/console": "~3.4|~4.0"
+ },
+ "suggest": {
+ "symfony/console": "For validating YAML files using the lint command"
},
"type": "library",
"extra": {
@@ -1116,7 +1398,7 @@
},
"autoload": {
"psr-4": {
- "Symfony\\Component\\Process\\": ""
+ "Symfony\\Component\\Yaml\\": ""
},
"exclude-from-classmap": [
"/Tests/"
@@ -1136,40 +1418,41 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony Process Component",
+ "description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
- "time": "2018-05-30T04:24:30+00:00"
+ "time": "2018-10-02T16:33:53+00:00"
},
{
- "name": "symfony/stopwatch",
- "version": "v3.4.12",
+ "name": "webmozart/assert",
+ "version": "1.3.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/stopwatch.git",
- "reference": "eb17cfa072cab26537ac37e9c4ece6c0361369af"
+ "url": "https://github.com/webmozart/assert.git",
+ "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/eb17cfa072cab26537ac37e9c4ece6c0361369af",
- "reference": "eb17cfa072cab26537ac37e9c4ece6c0361369af",
+ "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
+ "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
"shasum": ""
},
"require": {
- "php": "^5.5.9|>=7.0.8"
+ "php": "^5.3.3 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.6",
+ "sebastian/version": "^1.0.1"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.4-dev"
+ "dev-master": "1.3-dev"
}
},
"autoload": {
"psr-4": {
- "Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
+ "Webmozart\\Assert\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1177,17 +1460,17 @@
],
"authors": [
{
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "Bernhard Schussek",
+ "email": "bschussek@gmail.com"
}
],
- "description": "Symfony Stopwatch Component",
- "homepage": "https://symfony.com",
- "time": "2018-02-17T14:55:25+00:00"
+ "description": "Assertions to validate method input/output with nice error messages.",
+ "keywords": [
+ "assert",
+ "check",
+ "validate"
+ ],
+ "time": "2018-01-29T19:49:41+00:00"
}
],
"aliases": [],
@@ -1198,6 +1481,6 @@
"platform": [],
"platform-dev": [],
"platform-overrides": {
- "php": "7.1"
+ "php": "5.6.37"
}
}
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 00000000..7a2b4d02
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,27 @@
+
+
+
+ ./tests/Unit
+
+
+
+
+ .
+
+ ./l10n
+ ./tests
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/ApiTest.php b/tests/Unit/ApiTest.php
similarity index 97%
rename from tests/ApiTest.php
rename to tests/Unit/ApiTest.php
index be726824..11df2098 100644
--- a/tests/ApiTest.php
+++ b/tests/Unit/ApiTest.php
@@ -19,11 +19,12 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\Data;
-use OCA\Activity\Tests\Mock\Extension;
+use OCA\Activity\Tests\Unit\Mock\Extension;
use OCP\Activity\IExtension;
+use OCA\Activity\Tests\Unit\TestCase;
/**
* Class ApiTest
diff --git a/tests/AppInfo/AppTest.php b/tests/Unit/AppInfo/AppTest.php
similarity index 98%
rename from tests/AppInfo/AppTest.php
rename to tests/Unit/AppInfo/AppTest.php
index ad1583f3..322d685e 100644
--- a/tests/AppInfo/AppTest.php
+++ b/tests/Unit/AppInfo/AppTest.php
@@ -21,7 +21,7 @@
namespace OCA\Activity\Tests\AppInfo;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
/**
* Class AppTest
diff --git a/tests/AppInfo/ApplicationTest.php b/tests/Unit/AppInfo/ApplicationTest.php
similarity index 98%
rename from tests/AppInfo/ApplicationTest.php
rename to tests/Unit/AppInfo/ApplicationTest.php
index 4084f5ab..efad55c5 100644
--- a/tests/AppInfo/ApplicationTest.php
+++ b/tests/Unit/AppInfo/ApplicationTest.php
@@ -22,7 +22,7 @@
namespace OCA\Activity\Tests\AppInfo;
use OCA\Activity\AppInfo\Application;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
/**
* Class ApplicationTest
diff --git a/tests/BackgroundJob/EmailNotificationTest.php b/tests/Unit/BackgroundJob/EmailNotificationTest.php
similarity index 99%
rename from tests/BackgroundJob/EmailNotificationTest.php
rename to tests/Unit/BackgroundJob/EmailNotificationTest.php
index 5dd1c143..9f127761 100644
--- a/tests/BackgroundJob/EmailNotificationTest.php
+++ b/tests/Unit/BackgroundJob/EmailNotificationTest.php
@@ -22,7 +22,7 @@
namespace OCA\Activity\Tests\BackgroundJob;
use OCA\Activity\BackgroundJob\EmailNotification;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
/**
* Class EmailNotificationTest
diff --git a/tests/BackgroundJob/ExpireActivitiesTest.php b/tests/Unit/BackgroundJob/ExpireActivitiesTest.php
similarity index 97%
rename from tests/BackgroundJob/ExpireActivitiesTest.php
rename to tests/Unit/BackgroundJob/ExpireActivitiesTest.php
index c22858fa..60afc3b2 100644
--- a/tests/BackgroundJob/ExpireActivitiesTest.php
+++ b/tests/Unit/BackgroundJob/ExpireActivitiesTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\BackgroundJob\ExpireActivities;
use OCA\Activity\Data;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCP\IConfig;
/**
diff --git a/tests/ConsumerTest.php b/tests/Unit/ConsumerTest.php
similarity index 99%
rename from tests/ConsumerTest.php
rename to tests/Unit/ConsumerTest.php
index b40af81b..4721cfe9 100644
--- a/tests/ConsumerTest.php
+++ b/tests/Unit/ConsumerTest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\Consumer;
use OCP\DB;
diff --git a/tests/Controller/ActivitiesTest.php b/tests/Unit/Controller/ActivitiesTest.php
similarity index 98%
rename from tests/Controller/ActivitiesTest.php
rename to tests/Unit/Controller/ActivitiesTest.php
index e80fdb8c..38b9535b 100644
--- a/tests/Controller/ActivitiesTest.php
+++ b/tests/Unit/Controller/ActivitiesTest.php
@@ -22,7 +22,7 @@
namespace OCA\Activity\Tests\Controller;
use OCA\Activity\Controller\Activities;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCP\Template;
/**
diff --git a/tests/Controller/FeedTest.php b/tests/Unit/Controller/FeedTest.php
similarity index 99%
rename from tests/Controller/FeedTest.php
rename to tests/Unit/Controller/FeedTest.php
index 53dc2384..c38ed651 100644
--- a/tests/Controller/FeedTest.php
+++ b/tests/Unit/Controller/FeedTest.php
@@ -22,7 +22,7 @@
namespace OCA\Activity\Tests\Controller;
use OCA\Activity\Controller\Feed;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Util;
diff --git a/tests/Controller/OCSEndPointTest.php b/tests/Unit/Controller/OCSEndPointTest.php
similarity index 99%
rename from tests/Controller/OCSEndPointTest.php
rename to tests/Unit/Controller/OCSEndPointTest.php
index fbd5b36e..39d9938a 100644
--- a/tests/Controller/OCSEndPointTest.php
+++ b/tests/Unit/Controller/OCSEndPointTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\Controller\OCSEndPoint;
use OCA\Activity\Exception\InvalidFilterException;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCP\AppFramework\Http;
/**
diff --git a/tests/Controller/SettingsTest.php b/tests/Unit/Controller/SettingsTest.php
similarity index 99%
rename from tests/Controller/SettingsTest.php
rename to tests/Unit/Controller/SettingsTest.php
index ce441032..7d29e9eb 100644
--- a/tests/Controller/SettingsTest.php
+++ b/tests/Unit/Controller/SettingsTest.php
@@ -24,7 +24,7 @@
use OCA\Activity\Controller\Settings;
use OCA\Activity\Data;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCA\Activity\UserSettings;
use OCP\Activity\IExtension;
use OCP\IConfig;
diff --git a/tests/DataDeleteActivitiesTest.php b/tests/Unit/DataDeleteActivitiesTest.php
similarity index 99%
rename from tests/DataDeleteActivitiesTest.php
rename to tests/Unit/DataDeleteActivitiesTest.php
index 0bd4d39d..e93fa808 100644
--- a/tests/DataDeleteActivitiesTest.php
+++ b/tests/Unit/DataDeleteActivitiesTest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Platforms\MySqlPlatform;
diff --git a/tests/DataHelperTest.php b/tests/Unit/DataHelperTest.php
similarity index 99%
rename from tests/DataHelperTest.php
rename to tests/Unit/DataHelperTest.php
index 071ad43b..5b82ae6d 100644
--- a/tests/DataHelperTest.php
+++ b/tests/Unit/DataHelperTest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\DataHelper;
diff --git a/tests/DataTest.php b/tests/Unit/DataTest.php
similarity index 99%
rename from tests/DataTest.php
rename to tests/Unit/DataTest.php
index ced6e9f7..249ea07d 100644
--- a/tests/DataTest.php
+++ b/tests/Unit/DataTest.php
@@ -19,13 +19,11 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OC\DB\QueryBuilder\Literal;
use OCA\Activity\Data;
-use OCA\Activity\Tests\Mock\Extension;
-use OCP\Activity\IExtension;
-use OCP\IUser;
+use OCA\Activity\Tests\Unit\Mock\Extension;
/**
* Class DataTest
diff --git a/tests/FilesHooksTest.php b/tests/Unit/FilesHooksTest.php
similarity index 99%
rename from tests/FilesHooksTest.php
rename to tests/Unit/FilesHooksTest.php
index d0f9b1f2..e41c0597 100755
--- a/tests/FilesHooksTest.php
+++ b/tests/Unit/FilesHooksTest.php
@@ -19,11 +19,11 @@
*
*/
-namespace OCA\Activity;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\Extension\Files;
use OCA\Activity\Extension\Files_Sharing;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\FilesHooks;
use OCP\Files\NotFoundException;
use OCP\Share;
diff --git a/tests/Formatter/BaseFormatterTest.php b/tests/Unit/Formatter/BaseFormatterTest.php
similarity index 98%
rename from tests/Formatter/BaseFormatterTest.php
rename to tests/Unit/Formatter/BaseFormatterTest.php
index 129bfe09..11b00c02 100644
--- a/tests/Formatter/BaseFormatterTest.php
+++ b/tests/Unit/Formatter/BaseFormatterTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Formatter\BaseFormatter;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
class BaseFormatterTest extends TestCase {
diff --git a/tests/Formatter/CloudIDFormatterTest.php b/tests/Unit/Formatter/CloudIDFormatterTest.php
similarity index 99%
rename from tests/Formatter/CloudIDFormatterTest.php
rename to tests/Unit/Formatter/CloudIDFormatterTest.php
index efb9bdd1..730b8617 100644
--- a/tests/Formatter/CloudIDFormatterTest.php
+++ b/tests/Unit/Formatter/CloudIDFormatterTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\Formatter\CloudIDFormatter;
use OCA\Activity\Formatter\IFormatter;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
class CloudIDFormatterTest extends TestCase {
/** @var \OCP\Contacts\IManager|\PHPUnit_Framework_MockObject_MockObject */
diff --git a/tests/Formatter/FileFormatterTest.php b/tests/Unit/Formatter/FileFormatterTest.php
similarity index 99%
rename from tests/Formatter/FileFormatterTest.php
rename to tests/Unit/Formatter/FileFormatterTest.php
index f3136c7a..883b1f7f 100644
--- a/tests/Formatter/FileFormatterTest.php
+++ b/tests/Unit/Formatter/FileFormatterTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\Formatter\FileFormatter;
use OCA\Activity\Formatter\IFormatter;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
class FileFormatterTest extends TestCase {
/** @var \OCP\IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
diff --git a/tests/Formatter/GroupFormatterTest.php b/tests/Unit/Formatter/GroupFormatterTest.php
similarity index 98%
rename from tests/Formatter/GroupFormatterTest.php
rename to tests/Unit/Formatter/GroupFormatterTest.php
index a61ac2aa..2e761fef 100644
--- a/tests/Formatter/GroupFormatterTest.php
+++ b/tests/Unit/Formatter/GroupFormatterTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Formatter\GroupFormatter;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCP\IGroup;
use OCP\IGroupManager;
diff --git a/tests/Formatter/UserFormatterTest.php b/tests/Unit/Formatter/UserFormatterTest.php
similarity index 99%
rename from tests/Formatter/UserFormatterTest.php
rename to tests/Unit/Formatter/UserFormatterTest.php
index 96bd0ffb..1c5afbe8 100644
--- a/tests/Formatter/UserFormatterTest.php
+++ b/tests/Unit/Formatter/UserFormatterTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Formatter\UserFormatter;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
class UserFormatterTest extends TestCase {
diff --git a/tests/GroupHelperTest.php b/tests/Unit/GroupHelperTest.php
similarity index 99%
rename from tests/GroupHelperTest.php
rename to tests/Unit/GroupHelperTest.php
index e4ec2426..18c998c7 100644
--- a/tests/GroupHelperTest.php
+++ b/tests/Unit/GroupHelperTest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\GroupHelper;
use OCA\Activity\Parameter\Collection;
diff --git a/tests/HooksDeleteUserTest.php b/tests/Unit/HooksDeleteUserTest.php
similarity index 99%
rename from tests/HooksDeleteUserTest.php
rename to tests/Unit/HooksDeleteUserTest.php
index 132b01a7..a1feddd6 100644
--- a/tests/HooksDeleteUserTest.php
+++ b/tests/Unit/HooksDeleteUserTest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use Doctrine\DBAL\Driver\Statement;
use OCA\Activity\Data;
diff --git a/tests/MailQueueHandlerTest.php b/tests/Unit/MailQueueHandlerTest.php
similarity index 99%
rename from tests/MailQueueHandlerTest.php
rename to tests/Unit/MailQueueHandlerTest.php
index 77893053..2a5747f3 100644
--- a/tests/MailQueueHandlerTest.php
+++ b/tests/Unit/MailQueueHandlerTest.php
@@ -20,7 +20,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\MailQueueHandler;
use OCA\Activity\UserSettings;
diff --git a/tests/mock/extension.php b/tests/Unit/Mock/Extension.php
similarity index 98%
rename from tests/mock/extension.php
rename to tests/Unit/Mock/Extension.php
index 92f1b36b..a5da5a6a 100644
--- a/tests/mock/extension.php
+++ b/tests/Unit/Mock/Extension.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests\Mock;
+namespace OCA\Activity\Tests\Unit\Mock;
use OCP\Activity\IExtension;
use OCP\IL10N;
diff --git a/tests/NavigationTest.php b/tests/Unit/NavigationTest.php
similarity index 97%
rename from tests/NavigationTest.php
rename to tests/Unit/NavigationTest.php
index 3ecfd5a5..d654b05a 100644
--- a/tests/NavigationTest.php
+++ b/tests/Unit/NavigationTest.php
@@ -19,10 +19,10 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\Navigation;
-use OCA\Activity\Tests\Mock\Extension;
+use OCA\Activity\Tests\Unit\Mock\Extension;
/**
* Class NavigationTest
diff --git a/tests/Parameter/CollectionTest.php b/tests/Unit/Parameter/CollectionTest.php
similarity index 99%
rename from tests/Parameter/CollectionTest.php
rename to tests/Unit/Parameter/CollectionTest.php
index 4c44ce8a..5d014e6b 100644
--- a/tests/Parameter/CollectionTest.php
+++ b/tests/Unit/Parameter/CollectionTest.php
@@ -22,7 +22,7 @@
namespace OCA\Activity\Tests\Parameter;
use OCA\Activity\Parameter\Collection;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
class CollectionTest extends TestCase {
/** @var \OCP\IL10N|\PHPUnit_Framework_MockObject_MockObject */
diff --git a/tests/Parameter/FactoryTest.php b/tests/Unit/Parameter/FactoryTest.php
similarity index 99%
rename from tests/Parameter/FactoryTest.php
rename to tests/Unit/Parameter/FactoryTest.php
index f7433829..2435ae32 100644
--- a/tests/Parameter/FactoryTest.php
+++ b/tests/Unit/Parameter/FactoryTest.php
@@ -22,7 +22,7 @@
namespace OCA\Activity\Tests\Parameter;
use OCA\Activity\Parameter\Factory;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCP\IGroupManager;
class FactoryTest extends TestCase {
diff --git a/tests/Parameter/ParameterTest.php b/tests/Unit/Parameter/ParameterTest.php
similarity index 98%
rename from tests/Parameter/ParameterTest.php
rename to tests/Unit/Parameter/ParameterTest.php
index 3661c253..4b87f4c4 100644
--- a/tests/Parameter/ParameterTest.php
+++ b/tests/Unit/Parameter/ParameterTest.php
@@ -23,7 +23,7 @@
use OCA\Activity\Parameter\Collection;
use OCA\Activity\Parameter\Parameter;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
class ParameterTest extends TestCase {
/** @var \OCP\Activity\IEvent|\PHPUnit_Framework_MockObject_MockObject */
diff --git a/tests/PersonalTest.php b/tests/Unit/PersonalTest.php
similarity index 97%
rename from tests/PersonalTest.php
rename to tests/Unit/PersonalTest.php
index 6549a45a..3cc90b50 100644
--- a/tests/PersonalTest.php
+++ b/tests/Unit/PersonalTest.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\AppInfo\Application;
use OCA\Activity\Controller\Settings;
use OCA\Activity\PersonalPanel;
diff --git a/tests/Template/RssTest.php b/tests/Unit/Template/RssTest.php
similarity index 99%
rename from tests/Template/RssTest.php
rename to tests/Unit/Template/RssTest.php
index a6c7098f..839127ee 100644
--- a/tests/Template/RssTest.php
+++ b/tests/Unit/Template/RssTest.php
@@ -21,7 +21,7 @@
namespace OCA\Activity\Tests\Template;
-use OCA\Activity\Tests\TestCase;
+use OCA\Activity\Tests\Unit\TestCase;
use OCP\AppFramework\Http\TemplateResponse;
class RssTest extends TestCase {
diff --git a/tests/TestCase.php b/tests/Unit/TestCase.php
similarity index 97%
rename from tests/TestCase.php
rename to tests/Unit/TestCase.php
index ee340b05..182823a5 100644
--- a/tests/TestCase.php
+++ b/tests/Unit/TestCase.php
@@ -19,7 +19,7 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
abstract class TestCase extends \Test\TestCase {
/** @var array */
diff --git a/tests/UserSettingsTest.php b/tests/Unit/UserSettingsTest.php
similarity index 98%
rename from tests/UserSettingsTest.php
rename to tests/Unit/UserSettingsTest.php
index 263222f8..cd9e3c08 100644
--- a/tests/UserSettingsTest.php
+++ b/tests/Unit/UserSettingsTest.php
@@ -19,10 +19,10 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
use OCA\Activity\Data;
-use OCA\Activity\Tests\Mock\Extension;
+use OCA\Activity\Tests\Unit\Mock\Extension;
use OCA\Activity\UserSettings;
class UserSettingsTest extends TestCase {
diff --git a/tests/ViewInfoCacheTest.php b/tests/Unit/ViewInfoCacheTest.php
similarity index 98%
rename from tests/ViewInfoCacheTest.php
rename to tests/Unit/ViewInfoCacheTest.php
index dbd336bc..251c7508 100644
--- a/tests/ViewInfoCacheTest.php
+++ b/tests/Unit/ViewInfoCacheTest.php
@@ -19,11 +19,8 @@
*
*/
-namespace OCA\Activity\Tests;
+namespace OCA\Activity\Tests\Unit;
-use OCA\Activity\Formatter\FileFormatter;
-use OCA\Activity\Formatter\IFormatter;
-use OCA\Activity\Tests\TestCase;
use OCA\Activity\ViewInfoCache;
use OCP\Files\NotFoundException;
diff --git a/tests/js/activitycollectionSpec.js b/tests/Unit/js/activitycollectionSpec.js
similarity index 100%
rename from tests/js/activitycollectionSpec.js
rename to tests/Unit/js/activitycollectionSpec.js
diff --git a/tests/js/activitytabviewSpec.js b/tests/Unit/js/activitytabviewSpec.js
similarity index 100%
rename from tests/js/activitytabviewSpec.js
rename to tests/Unit/js/activitytabviewSpec.js
diff --git a/tests/js/karma.config.js b/tests/Unit/js/karma.config.js
similarity index 96%
rename from tests/js/karma.config.js
rename to tests/Unit/js/karma.config.js
index c9b00d27..bf2b681f 100644
--- a/tests/js/karma.config.js
+++ b/tests/Unit/js/karma.config.js
@@ -36,13 +36,13 @@ module.exports = function(config) {
];
var testFiles = [
- 'tests/js/*.js'
+ 'tests/Unit/js/*.js'
];
- var basePath = '../../';
+ var basePath = '../../../';
var ownCloudPath = '../../';
- var coreModules = require(ownCloudPath + '../../core/js/core.json');
+ var coreModules = require(ownCloudPath + '../../../core/js/core.json');
var coreLibs = [
ownCloudPath + 'core/js/tests/specHelper.js'
];
diff --git a/tests/js/package.json b/tests/Unit/js/package.json
similarity index 100%
rename from tests/js/package.json
rename to tests/Unit/js/package.json
diff --git a/tests/js/scriptSpec.js b/tests/Unit/js/scriptSpec.js
similarity index 100%
rename from tests/js/scriptSpec.js
rename to tests/Unit/js/scriptSpec.js
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
deleted file mode 100644
index a8381386..00000000
--- a/tests/bootstrap.php
+++ /dev/null
@@ -1,46 +0,0 @@
-
- * @author Jörn Friedrich Dreyer
- *
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see
- *
- */
-if (!\defined('PHPUNIT_RUN')) {
- \define('PHPUNIT_RUN', 1);
-}
-
-require_once __DIR__.'/../../../lib/base.php';
-
-\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
-
-// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
-\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
-
-// Fix for "Autoload path not allowed: .../activity/tests/testcase.php"
-\OC_App::loadApp('activity');
-
-// Fix for "Autoload path not allowed: .../files/lib/activity.php"
-\OC_App::loadApp('files');
-
-// Fix for "Autoload path not allowed: .../files_sharing/lib/activity.php"
-\OC_App::loadApp('files_sharing');
-
-if (!\class_exists('PHPUnit_Framework_TestCase')) {
- require_once('PHPUnit/Autoload.php');
-}
-
-OC_Hook::clear();
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
deleted file mode 100644
index fd5d1a49..00000000
--- a/tests/phpunit.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
- .
-
-
-
-
- ../../activity/appinfo
- ../../activity/lib
- ../../activity/personal.php
-
- ../../activity/appinfo/update.php
-
-
-
-
-
-
-
-
-
diff --git a/vendor-bin/owncloud-codestyle/composer.json b/vendor-bin/owncloud-codestyle/composer.json
new file mode 100644
index 00000000..0e54e5b9
--- /dev/null
+++ b/vendor-bin/owncloud-codestyle/composer.json
@@ -0,0 +1,5 @@
+{
+ "require": {
+ "owncloud/coding-standard": "^1.0"
+ }
+}