404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.79.214: ~ $
<?php declare(strict_types=1);
/*
 * This file is part of sebastian/complexity.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace SebastianBergmann\Complexity;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;

#[CoversClass(Complexity::class)]
#[Small]
final class ComplexityTest extends TestCase
{
    public function testHasName(): void
    {
        $this->assertSame('Foo::bar', $this->complexity()->name());
    }

    public function testHasCyclomaticComplexity(): void
    {
        $this->assertSame(1, $this->complexity()->cyclomaticComplexity());
    }

    private function complexity(): Complexity
    {
        return new Complexity('Foo::bar', 1);
    }
}

Filemanager

Name Type Size Permission Actions
ComplexityCalculatingVisitorTest.php File 2.96 KB 0644
ComplexityCollectionTest.php File 2.22 KB 0644
ComplexityTest.php File 920 B 0644
CyclomaticComplexityCalculatingVisitorTest.php File 1.39 KB 0644