Skip to content

Commit 8294890

Browse files
committed
update Pest
1 parent 31dc17d commit 8294890

File tree

3 files changed

+32
-44
lines changed

3 files changed

+32
-44
lines changed

composer.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@
2626
"guzzlehttp/guzzle": "^7.2",
2727
"itsgoingd/clockwork": "^5.1",
2828
"laravel/pint": "^1.0",
29-
"nunomaduro/collision": "^6.0",
29+
"nunomaduro/collision": "^7.0",
3030
"orchestra/testbench": "^7.6|^8.0",
31-
"pestphp/pest": "^1.23",
32-
"pestphp/pest-plugin-laravel": "^1.1",
33-
"phpunit/phpunit": "^9.6.7",
31+
"pestphp/pest": "^2.0",
32+
"pestphp/pest-plugin-laravel": "^2.0",
3433
"spatie/test-time": "^1.3"
3534
},
3635
"suggest": {

phpunit.xml.dist

+24-40
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
12-
processIsolation="false"
13-
stopOnFailure="false"
14-
executionOrder="random"
15-
failOnWarning="true"
16-
failOnRisky="true"
17-
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
20-
>
21-
<testsuites>
22-
<testsuite name="Opcodes LogViewer Test Suite">
23-
<directory>tests</directory>
24-
</testsuite>
25-
</testsuites>
26-
<coverage>
27-
<include>
28-
<directory suffix=".php">./src</directory>
29-
</include>
30-
<report>
31-
<html outputDirectory="build/coverage"/>
32-
<text outputFile="build/coverage.txt"/>
33-
<clover outputFile="build/logs/clover.xml"/>
34-
</report>
35-
</coverage>
36-
<logging>
37-
<junit outputFile="build/report.junit.xml"/>
38-
</logging>
39-
<php>
40-
<env name="LOG_VIEWER_CACHE_DRIVER" value="array"/>
41-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Opcodes Log Viewer Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<coverage>
9+
<report>
10+
<html outputDirectory="build/coverage"/>
11+
<text outputFile="build/coverage.txt"/>
12+
<clover outputFile="build/logs/clover.xml"/>
13+
</report>
14+
</coverage>
15+
<logging>
16+
<junit outputFile="build/report.junit.xml"/>
17+
</logging>
18+
<php>
19+
<env name="LOG_VIEWER_CACHE_DRIVER" value="array"/>
20+
</php>
21+
<source>
22+
<include>
23+
<directory suffix=".php">./src</directory>
24+
</include>
25+
</source>
4226
</phpunit>

tests/Unit/DumpTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
test('dumps')
4+
->expect(['dump', 'dd'])
5+
->toOnlyBeUsedIn('Opcodes\LogViewer\Utils\Benchmark');

0 commit comments

Comments
 (0)