Skip to content

Commit f2442e2

Browse files
committed
replace prophecy tests with phpunit
1 parent 1daad22 commit f2442e2

File tree

8 files changed

+824
-713
lines changed

8 files changed

+824
-713
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"symfony/options-resolver": "^2.6 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0"
1919
},
2020
"require-dev": {
21-
"phpspec/phpspec": "^5.1 || ^6.0 || ^7.0",
22-
"nyholm/psr7": "^1.6.1"
21+
"nyholm/psr7": "^1.6.1",
22+
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6"
2323
},
2424
"autoload": {
2525
"psr-4": {
@@ -28,11 +28,11 @@
2828
},
2929
"autoload-dev": {
3030
"psr-4": {
31-
"spec\\Http\\Client\\Common\\Plugin\\": "spec/"
31+
"Http\\Client\\Common\\Plugin\\Tests\\": "tests/"
3232
}
3333
},
3434
"scripts": {
35-
"test": "vendor/bin/phpspec run",
36-
"test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml"
35+
"test": "vendor/bin/phpunit",
36+
"test-ci": "vendor/bin/phpunit"
3737
}
3838
}

phpunit.xml.dist

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
beStrictAboutTestsThatDoNotTestAnything="true"
7+
beStrictAboutTodoAnnotatedTests="true">
8+
<testsuites>
9+
<testsuite name="Cache Plugin Test Suite">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
</phpunit>

spec/Cache/Generator/HeaderCacheKeyGeneratorSpec.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

spec/Cache/Generator/SimpleGeneratorSpec.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)