mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-03 17:52:29 +01:00 
			
		
		
		
	Upodate PHPUnit to latest version
This commit is contained in:
		@@ -8,4 +8,5 @@
 | 
				
			|||||||
  <phar name="phpdocumentor" version="^3.7.1" installed="3.7.1" location="./tools/phpdocumentor" copy="false"/>
 | 
					  <phar name="phpdocumentor" version="^3.7.1" installed="3.7.1" location="./tools/phpdocumentor" copy="false"/>
 | 
				
			||||||
  <phar name="phpbench" version="^1.4.1" installed="1.4.1" location="./tools/phpbench" copy="false"/>
 | 
					  <phar name="phpbench" version="^1.4.1" installed="1.4.1" location="./tools/phpbench" copy="false"/>
 | 
				
			||||||
  <phar name="infection" version="^0.29.14" installed="0.29.14" location="./tools/infection" copy="false"/>
 | 
					  <phar name="infection" version="^0.29.14" installed="0.29.14" location="./tools/infection" copy="false"/>
 | 
				
			||||||
 | 
					  <phar name="phpunit" version="^12.1.3" installed="12.2.0" location="./tools/phpunit" copy="false"/>
 | 
				
			||||||
</phive>
 | 
					</phive>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,12 +28,10 @@
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "test": "phpunit",
 | 
					    "test": "tools/phpunit",
 | 
				
			||||||
    "document": [
 | 
					    "document": "tools/phpdocumentor",
 | 
				
			||||||
      "tools/phpdocumentor"
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    "benchmark": "tools/phpbench run --report=default --output=build-artifact",
 | 
					    "benchmark": "tools/phpbench run --report=default --output=build-artifact",
 | 
				
			||||||
    "metrics": "vendor/bin/phpmetrics --config=phpmetrics.yml",
 | 
					    "metrics": "phpmetrics --config=phpmetrics.yml",
 | 
				
			||||||
    "lint": [
 | 
					    "lint": [
 | 
				
			||||||
      "tools/phpcbf",
 | 
					      "tools/phpcbf",
 | 
				
			||||||
      "tools/phpcs",
 | 
					      "tools/phpcs",
 | 
				
			||||||
@@ -46,7 +44,7 @@
 | 
				
			|||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "analyze-phpstan": "tools/phpstan analyze --error-format=raw",
 | 
					    "analyze-phpstan": "tools/phpstan analyze --error-format=raw",
 | 
				
			||||||
    "analyze-psalm": "tools/psalm --show-info=true",
 | 
					    "analyze-psalm": "tools/psalm --show-info=true",
 | 
				
			||||||
    "analyze-rector": "vendor/bin/rector --dry-run",
 | 
					    "analyze-rector": "rector --dry-run",
 | 
				
			||||||
    "html": [
 | 
					    "html": [
 | 
				
			||||||
      "pandoc -s README.md -o output/README.html",
 | 
					      "pandoc -s README.md -o output/README.html",
 | 
				
			||||||
      "pandoc -s docs/index.rst -o output/index.html",
 | 
					      "pandoc -s docs/index.rst -o output/index.html",
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										26
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										26
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							@@ -218,20 +218,20 @@
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "name": "openmetrics-php/exposition-text",
 | 
					            "name": "openmetrics-php/exposition-text",
 | 
				
			||||||
            "version": "v0.4.1",
 | 
					            "version": "v0.4.2",
 | 
				
			||||||
            "source": {
 | 
					            "source": {
 | 
				
			||||||
                "type": "git",
 | 
					                "type": "git",
 | 
				
			||||||
                "url": "https://github.com/openmetrics-php/exposition-text.git",
 | 
					                "url": "https://github.com/openmetrics-php/exposition-text.git",
 | 
				
			||||||
                "reference": "fcfca38f693e168f4520bbd359d91528bbb9a8e8"
 | 
					                "reference": "4f65004f93e53eac4b9668879b92d3c200a851ba"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "dist": {
 | 
					            "dist": {
 | 
				
			||||||
                "type": "zip",
 | 
					                "type": "zip",
 | 
				
			||||||
                "url": "https://api.github.com/repos/openmetrics-php/exposition-text/zipball/fcfca38f693e168f4520bbd359d91528bbb9a8e8",
 | 
					                "url": "https://api.github.com/repos/openmetrics-php/exposition-text/zipball/4f65004f93e53eac4b9668879b92d3c200a851ba",
 | 
				
			||||||
                "reference": "fcfca38f693e168f4520bbd359d91528bbb9a8e8",
 | 
					                "reference": "4f65004f93e53eac4b9668879b92d3c200a851ba",
 | 
				
			||||||
                "shasum": ""
 | 
					                "shasum": ""
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "require": {
 | 
					            "require": {
 | 
				
			||||||
                "php": "^7.2 || ^8.0"
 | 
					                "php": "^7.2 || ^8.0 || ^8.4"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "require-dev": {
 | 
					            "require-dev": {
 | 
				
			||||||
                "ext-xdebug": "*"
 | 
					                "ext-xdebug": "*"
 | 
				
			||||||
@@ -255,9 +255,9 @@
 | 
				
			|||||||
            "description": "Implementation of the text exposition format of OpenMetrics",
 | 
					            "description": "Implementation of the text exposition format of OpenMetrics",
 | 
				
			||||||
            "support": {
 | 
					            "support": {
 | 
				
			||||||
                "issues": "https://github.com/openmetrics-php/exposition-text/issues",
 | 
					                "issues": "https://github.com/openmetrics-php/exposition-text/issues",
 | 
				
			||||||
                "source": "https://github.com/openmetrics-php/exposition-text/tree/v0.4.1"
 | 
					                "source": "https://github.com/openmetrics-php/exposition-text/tree/v0.4.2"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "time": "2024-07-16T12:47:30+00:00"
 | 
					            "time": "2025-06-04T14:59:47+00:00"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "name": "phar-io/manifest",
 | 
					            "name": "phar-io/manifest",
 | 
				
			||||||
@@ -837,16 +837,16 @@
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "name": "phpunit/phpunit",
 | 
					            "name": "phpunit/phpunit",
 | 
				
			||||||
            "version": "11.5.21",
 | 
					            "version": "11.5.22",
 | 
				
			||||||
            "source": {
 | 
					            "source": {
 | 
				
			||||||
                "type": "git",
 | 
					                "type": "git",
 | 
				
			||||||
                "url": "https://github.com/sebastianbergmann/phpunit.git",
 | 
					                "url": "https://github.com/sebastianbergmann/phpunit.git",
 | 
				
			||||||
                "reference": "d565e2cdc21a7db9dc6c399c1fc2083b8010f289"
 | 
					                "reference": "4cd72faaa8f811e4cc63040cba167757660a5538"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "dist": {
 | 
					            "dist": {
 | 
				
			||||||
                "type": "zip",
 | 
					                "type": "zip",
 | 
				
			||||||
                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d565e2cdc21a7db9dc6c399c1fc2083b8010f289",
 | 
					                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/4cd72faaa8f811e4cc63040cba167757660a5538",
 | 
				
			||||||
                "reference": "d565e2cdc21a7db9dc6c399c1fc2083b8010f289",
 | 
					                "reference": "4cd72faaa8f811e4cc63040cba167757660a5538",
 | 
				
			||||||
                "shasum": ""
 | 
					                "shasum": ""
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "require": {
 | 
					            "require": {
 | 
				
			||||||
@@ -918,7 +918,7 @@
 | 
				
			|||||||
            "support": {
 | 
					            "support": {
 | 
				
			||||||
                "issues": "https://github.com/sebastianbergmann/phpunit/issues",
 | 
					                "issues": "https://github.com/sebastianbergmann/phpunit/issues",
 | 
				
			||||||
                "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
 | 
					                "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
 | 
				
			||||||
                "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.21"
 | 
					                "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.22"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            "funding": [
 | 
					            "funding": [
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
@@ -942,7 +942,7 @@
 | 
				
			|||||||
                    "type": "tidelift"
 | 
					                    "type": "tidelift"
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "time": "2025-05-21T12:35:00+00:00"
 | 
					            "time": "2025-06-06T02:48:05+00:00"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "name": "rector/rector",
 | 
					            "name": "rector/rector",
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4317
									
								
								docs/CodeStandard.md
									
									
									
									
									
								
							
							
						
						
									
										4317
									
								
								docs/CodeStandard.md
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -10,15 +10,8 @@ use DNW\Skills\Player;
 | 
				
			|||||||
use DNW\Skills\Team;
 | 
					use DNW\Skills\Team;
 | 
				
			||||||
use DNW\Skills\TrueSkill\FactorGraphTrueSkillCalculator;
 | 
					use DNW\Skills\TrueSkill\FactorGraphTrueSkillCalculator;
 | 
				
			||||||
use PHPUnit\Framework\TestCase;
 | 
					use PHPUnit\Framework\TestCase;
 | 
				
			||||||
use PHPUnit\Framework\Attributes\CoversClass;
 | 
					 | 
				
			||||||
use PHPUnit\Framework\Attributes\CoversNothing;
 | 
					use PHPUnit\Framework\Attributes\CoversNothing;
 | 
				
			||||||
use PHPUnit\Framework\Attributes\UsesClass;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[CoversClass(FactorGraphTrueSkillCalculator::class)]
 | 
					 | 
				
			||||||
#[UsesClass(\DNW\Skills\Numerics\Range::class)]
 | 
					 | 
				
			||||||
#[UsesClass(\DNW\Skills\PlayersRange::class)]
 | 
					 | 
				
			||||||
#[UsesClass(\DNW\Skills\SkillCalculator::class)]
 | 
					 | 
				
			||||||
#[UsesClass(\DNW\Skills\TeamsRange::class)]
 | 
					 | 
				
			||||||
final class FactorGraphTrueSkillCalculatorTest extends TestCase
 | 
					final class FactorGraphTrueSkillCalculatorTest extends TestCase
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    #[CoversNothing]
 | 
					    #[CoversNothing]
 | 
				
			||||||
@@ -75,6 +68,7 @@ final class FactorGraphTrueSkillCalculatorTest extends TestCase
 | 
				
			|||||||
        TrueSkillCalculatorTests::testPartialPlayScenarios($this, $calculator);
 | 
					        TrueSkillCalculatorTests::testPartialPlayScenarios($this, $calculator);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    #[CoversNothing]
 | 
				
			||||||
    public function testMethodisSupported(): void
 | 
					    public function testMethodisSupported(): void
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $calculator = new FactorGraphTrueSkillCalculator();
 | 
					        $calculator = new FactorGraphTrueSkillCalculator();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,10 +6,8 @@ namespace DNW\Skills\Tests\TrueSkill;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
use DNW\Skills\TrueSkill\TwoPlayerTrueSkillCalculator;
 | 
					use DNW\Skills\TrueSkill\TwoPlayerTrueSkillCalculator;
 | 
				
			||||||
use PHPUnit\Framework\TestCase;
 | 
					use PHPUnit\Framework\TestCase;
 | 
				
			||||||
use PHPUnit\Framework\Attributes\CoversClass;
 | 
					 | 
				
			||||||
use PHPUnit\Framework\Attributes\CoversNothing;
 | 
					use PHPUnit\Framework\Attributes\CoversNothing;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[CoversClass(TwoPlayerTrueSkillCalculator::class)]
 | 
					 | 
				
			||||||
final class TwoPlayerTrueSkillCalculatorTest extends TestCase
 | 
					final class TwoPlayerTrueSkillCalculatorTest extends TestCase
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    #[CoversNothing]
 | 
					    #[CoversNothing]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,10 +6,8 @@ namespace DNW\Skills\Tests\TrueSkill;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
use DNW\Skills\TrueSkill\TwoTeamTrueSkillCalculator;
 | 
					use DNW\Skills\TrueSkill\TwoTeamTrueSkillCalculator;
 | 
				
			||||||
use PHPUnit\Framework\TestCase;
 | 
					use PHPUnit\Framework\TestCase;
 | 
				
			||||||
use PHPUnit\Framework\Attributes\CoversClass;
 | 
					 | 
				
			||||||
use PHPUnit\Framework\Attributes\CoversNothing;
 | 
					use PHPUnit\Framework\Attributes\CoversNothing;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#[CoversClass(TwoTeamTrueSkillCalculator::class)]
 | 
					 | 
				
			||||||
final class TwoTeamTrueSkillCalculatorTest extends TestCase
 | 
					final class TwoTeamTrueSkillCalculatorTest extends TestCase
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    #[CoversNothing]
 | 
					    #[CoversNothing]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user