summaryrefslogtreecommitdiffstats
path: root/composer.json
blob: ca84c5852ace937e8c42d65cab1381ca19570832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
    "name": "mockery/mockery",
    "description": "Mockery is a simple yet flexible PHP mock object framework",
    "license": "BSD-3-Clause",
    "type": "library",
    "keywords": [
        "bdd",
        "library",
        "mock",
        "mock objects",
        "mockery",
        "stub",
        "tdd",
        "test",
        "test double",
        "testing"
    ],
    "authors": [
        {
            "name": "Pádraic Brady",
            "email": "padraic.brady@gmail.com",
            "homepage": "https://github.com/padraic",
            "role": "Author"
        },
        {
            "name": "Dave Marshall",
            "email": "dave.marshall@atstsolutions.co.uk",
            "homepage": "https://davedevelopment.co.uk",
            "role": "Developer"
        },
        {
            "name": "Nathanael Esayeas",
            "email": "nathanael.esayeas@protonmail.com",
            "homepage": "https://github.com/ghostwriter",
            "role": "Lead Developer"
        }
    ],
    "homepage": "https://github.com/mockery/mockery",
    "support": {
        "issues": "https://github.com/mockery/mockery/issues",
        "source": "https://github.com/mockery/mockery",
        "docs": "https://docs.mockery.io/",
        "rss": "https://github.com/mockery/mockery/releases.atom",
        "security": "https://github.com/mockery/mockery/security/advisories"
    },
    "require": {
        "php": ">=7.3",
        "lib-pcre": ">=7.0",
        "hamcrest/hamcrest-php": "^2.0.1"
    },
    "require-dev": {
        "phpunit/phpunit": "^8.5 || ^9.6.17",
        "symplify/easy-coding-standard": "^12.1.14"
    },
    "conflict": {
        "phpunit/phpunit": "<8.0"
    },
    "autoload": {
        "psr-4": {
            "Mockery\\": "library/Mockery"
        },
        "files": [
            "library/helpers.php",
            "library/Mockery.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Fixture\\": "tests/Fixture/",
            "Mockery\\Tests\\Unit\\": "tests/Unit",
            "test\\": "tests/"
        },
        "files": [
            "fixtures/autoload.php",
            "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
        ]
    },
    "config": {
        "optimize-autoloader": true,
        "platform": {
            "php": "7.3.999"
        },
        "preferred-install": "dist",
        "sort-packages": true
    },
    "scripts": {
        "check": [
            "@composer validate",
            "@ecs",
            "@test"
        ],
        "docs": "vendor/bin/phpdoc -d library -t docs/api",
        "ecs": [
            "@ecs:fix",
            "@ecs:check"
        ],
        "ecs:check": "ecs check --clear-cache || true",
        "ecs:fix": "ecs check --clear-cache --fix",
        "phive": [
            ".phive/tools/phive update --force-accept-unsigned",
            ".phive/tools/phive purge"
        ],
        "phpunit": "vendor/bin/phpunit --do-not-cache-result --colors=always",
        "phpunit:coverage": "@phpunit --coverage-clover=coverage.xml",
        "psalm": ".phive/tools/psalm --no-diff --no-cache",
        "psalm:baseline": "@psalm --set-baseline=psalm-baseline.xml",
        "psalm:dry-run": "@psalm --alter --issues=all --dry-run",
        "psalm:security": "@psalm --taint-analysis",
        "psalm:shepherd": "@psalm --stats --shepherd --output-format=github",
        "test": [
            "@phpunit --stop-on-defect",
            "@psalm",
            "@psalm:security",
            "@psalm:dry-run"
        ]
    }
}