summaryrefslogtreecommitdiffstats
path: root/composer.json
blob: bc6b77b4519c34d6ff2ef5b2444617195a37e663 (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
{
    "name": "mockery/mockery",
    "description": "Mockery is a simple yet flexible PHP mock object framework",
    "license": "BSD-3-Clause",
    "keywords": [
        "bdd",
        "library",
        "mock",
        "mock objects",
        "mockery",
        "stub",
        "tdd",
        "test",
        "test double",
        "testing"
    ],
    "authors": [
        {
            "name": "Pádraic Brady",
            "email": "padraic.brady@gmail.com",
            "homepage": "http://blog.astrumfutura.com"
        },
        {
            "name": "Dave Marshall",
            "email": "dave.marshall@atstsolutions.co.uk",
            "homepage": "http://davedevelopment.co.uk"
        }
    ],
    "homepage": "https://github.com/mockery/mockery",
    "require": {
        "php": "^7.4 || ^8.0",
        "lib-pcre": ">=7.0",
        "hamcrest/hamcrest-php": "^2.0.1"
    },
    "require-dev": {
        "phpunit/phpunit": "^8.5 || ^9.3",
        "psalm/plugin-phpunit": "^0.18",
        "vimeo/psalm": "^5.9"
    },
    "conflict": {
        "phpunit/phpunit": "<8.0"
    },
    "autoload": {
        "psr-4": {
            "Mockery\\": "library/Mockery"
        },
        "files": [
            "library/helpers.php",
            "library/Mockery.php"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "test\\": "tests/"
        },
        "files": [
            "vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "extra": {
        "branch-alias": {
            "dev-main": "1.6.x-dev"
        }
    },
    "scripts": {
        "check": [
            "@composer validate",
            "@test",
            "@psalm:security",
            "@psalm:dry-run"
        ],
        "docs": "phpdoc -d library -t docs/api",
        "phpunit": [
            "@xdebug",
            "vendor/bin/phpunit --colors=always --testdox --stop-on-failure"
        ],
        "psalm": [
            "@xdebug",
            "@psalm:shepherd"
        ],
        "psalm:baseline": "vendor/bin/psalm --set-baseline=psalm-baseline.xml",
        "psalm:dry-run": "vendor/bin/psalm --alter --issues=all --dry-run",
        "psalm:missing": "vendor/bin/psalm --alter --issues=MissingReturnType",
        "psalm:security": "vendor/bin/psalm --taint-analysis",
        "psalm:shepherd": "vendor/bin/psalm --shepherd --show-info=false --stats --no-diff --no-cache",
        "test": [
            "@phpunit",
            "@psalm"
        ],
        "xdebug": [
            "@putenv XDEBUG_MODE=coverage"
        ]
    }
}