test: update phpunit
This commit is contained in:
Родитель
ce5d55e960
Коммит
a01b862310
|
@ -8,7 +8,7 @@
|
|||
"friendsofphp/php-cs-fixer": "^2.14"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phpunit --configuration phpunit.xml --fail-on-warning",
|
||||
"test": "phpunit --configuration phpunit.xml",
|
||||
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
||||
"cs:fix": "php-cs-fixer fix",
|
||||
"lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;"
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
28
phpunit.xml
28
phpunit.xml
|
@ -1,17 +1,13 @@
|
|||
<phpunit bootstrap="tests/bootstrap-unit.php"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
colors="true"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="unit">
|
||||
<directory>tests/unit</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">lib</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<?xml version="1.0"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap-unit.php" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
||||
<coverage processUncoveredFiles="true">
|
||||
<include>
|
||||
<directory suffix=".php">lib</directory>
|
||||
</include>
|
||||
</coverage>
|
||||
<testsuites>
|
||||
<testsuite name="unit">
|
||||
<directory>tests/unit</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
|
|
|
@ -97,7 +97,7 @@ class RosterPushTest extends TestCase
|
|||
->method('createOrUpdateRosterItem')
|
||||
->with($user3);
|
||||
|
||||
$resultStatement = $this->getMockBuilder('Doctrine\DBAL\Driver\ResultStatement')->getMock();
|
||||
$resultStatement = $this->getMockBuilder('OCP\DB\IResult')->getMock();
|
||||
|
||||
$resultStatement->expects($this->at(0))
|
||||
->method('fetchAll')
|
||||
|
|
Загрузка…
Ссылка в новой задаче