<?php
/**
 * Copyright 2014 Klarna AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * File containing the test bootstrap script.
 */

$loader = require dirname(__DIR__) . '/vendor/autoload.php';
$loader->addPsr4('Klarna\\Rest\\Tests\\', __DIR__.'/');

date_default_timezone_set('UTC');
                                                                                                                                                                                                                                  {
    "name": "klarna/kco_rest",
    "description": "Klarna Checkout PHP SDK",
    "homepage": "http://developers.klarna.com",
    "license": "Apache-2.0",
    "type": "library",
    "authors": [
        {
            "name": "Klarna AB",
            "email": "integration@klarna.com"
        }
    ],
    "autoload": {
        "psr-4": {
            "": "src/"
        }
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "guzzlehttp/guzzle": ">=4.2,<6.0"
    },
    "require-dev": {
        "phpunit/phpunit": "4.2.*",
        "squizlabs/php_codesniffer": "1.5.*",
        "phpmd/phpmd": "2.1.*",
        "phploc/phploc": "2.0.*",
        "sebastian/phpcpd": "2.0.*",
        "satooshi/php-coveralls": "0.6.*",
        "apigen/apigen": "4.0.*",
        "klarna/apigen-theme": "~1.0"
    },
    "scripts": {
        "test": "vendor/bin/phpunit --colors",
        "reference": "vendor/bin/apigen generate -s src -d docs/reference --template-config='vendor/klarna/apigen-theme/src/config.neon'",
        "analyze": [
            "mkdir -p build/logs",
            "vendor/bin/phploc --log-csv build/logs/phploc.csv src/ tests/",
            "mkdir -p build/pdepend",
            "vendor/bin/pdepend --jdepend-xml=build/logs/jdepend.xml --jdepend-chart=build/pdepend/dependencies.svg --overview-pyramid=build/pdepend/overview-pyramid.svg src/",
            "vendor/bin/phpmd src/,tests/ xml phpmd.xml --reportfile build/logs/pmd.xml || true",
            "vendor/bin/phpcs --standard=PSR2 --report=checkstyle --report-file=build/logs/checkstyle.xml --extensions=php src/ tests/",
            "vendor/bin/phpcpd --log-pmd build/logs/pmd-cpd.xml src/ tests/ || true"
        ]
    }
}
