Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"mediawiki/mediawiki-phan-config": "0.11.1",
"php-parallel-lint/php-parallel-lint": "~1.3.1",
"phpspec/prophecy": "~1.15.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^8.5||^9.0",
"squizlabs/php_codesniffer": "~3.7.1"
},
Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
use Composer\IO\IOInterface;
use Prophecy\Argument;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* @covers \Wikimedia\Composer\Merge\V2\Logger
*/
class LoggerTest extends TestCase
{
use ProphecyTrait;

public function testVeryVerboseDebug()
{
Expand Down
4 changes: 3 additions & 1 deletion tests/phpunit/MergePluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use Composer\Util\HttpDownloader;
use Prophecy\Argument;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use ReflectionClass;
use ReflectionProperty;
Expand All @@ -48,6 +49,7 @@
*/
class MergePluginTest extends TestCase
{
use ProphecyTrait;

/**
* @var Composer
Expand Down Expand Up @@ -1622,7 +1624,7 @@ public function provideFireInit()
{
return [
"with INIT event" => [true],
"without INIT event" => [true],
"without INIT event" => [false],
];
}

Expand Down
3 changes: 3 additions & 0 deletions tests/phpunit/NestedArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@

use Composer\Composer;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* @coversDefaultClass \Wikimedia\Composer\Merge\V2\NestedArray
*/
class NestedArrayTest extends TestCase
{
use ProphecyTrait;

/**
* @covers ::mergeDeep
* @covers ::mergeDeepArray
Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/PluginStateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@

use Composer\Composer;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* @covers \Wikimedia\Composer\Merge\V2\PluginState
*/
class PluginStateTest extends TestCase
{
use ProphecyTrait;

public function testLocked()
{
Expand Down
2 changes: 2 additions & 0 deletions tests/phpunit/StabilityFlagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
use Composer\Package\BasePackage;
use Composer\Package\Link;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;

/**
* @covers \Wikimedia\Composer\Merge\V2\StabilityFlags
*/
class StabilityFlagsTest extends TestCase
{
use ProphecyTrait;

/**
* @dataProvider provideExplicitStability
Expand Down