refactor: Cleanup git state - commit all staged changes

Major refactoring cleanup:
- Add new controller architecture (class-controller-*.php)
- Add new settings-v2 UI (views/settings-v2/)
- Add new CSS architecture (agentic-sidebar.css, tokens)
- Add esbuild build pipeline (scripts/build.js, package.json)
- Add composer dependencies (vendor/)
- Add frontend src directory (assets/js/src/index.jsx)
- Add documentation files
- Remove old/obsolete files (class-settings.php, old CSS)

This commits all pending changes from previous refactoring efforts.
This commit is contained in:
Dwindi Ramadhana
2026-06-17 05:27:58 +07:00
parent d3f142222c
commit 690991c526
7963 changed files with 941566 additions and 67372 deletions

View File

@@ -0,0 +1,89 @@
<?php
declare(strict_types=1);
/**
* phpDocumentor
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link http://phpdoc.org
*/
namespace phpDocumentor\GraphViz\PHPStan;
use Mockery as m;
use phpDocumentor\GraphViz\Graph;
use phpDocumentor\GraphViz\Node;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Type\FloatType;
use PHPStan\Type\StringType;
use PHPUnit\Framework\TestCase;
final class MethodReflectionExtensionTest extends TestCase
{
/** @var MethodReflectionExtension */
private $fixture;
public function setUp(): void
{
$this->fixture = new MethodReflectionExtension();
}
/**
* @dataProvider existingMethodProvider
*/
public function testNodeHasMethodReturnsTrue(string $className, string $methodName): void
{
$classReflection = m::mock(ClassReflection::class);
$classReflection->shouldReceive('getName')->andReturn($className);
$this->assertTrue($this->fixture->hasMethod($classReflection, $methodName));
}
/**
* @return array<string, array<string, string>>
*/
public function existingMethodProvider(): array
{
return [
'node::getLabel' => [
'className' => Node::class,
'methodName' => 'getLabel',
],
'node::setLabel' => [
'className' => Node::class,
'methodName' => 'setLabel',
],
'graph::setFontSize' => [
'className' => Graph::class,
'methodName' => 'setFontSize',
],
'graph::getFontSize' => [
'className' => Graph::class,
'methodName' => 'getFontSize',
],
];
}
public function testAttributeType(): void
{
$classReflection = m::mock(ClassReflection::class);
$classReflection->shouldReceive('getName')->andReturn(Node::class);
$method = $this->fixture->getMethod($classReflection, 'setFontSize');
$this->assertInstanceOf(FloatType::class, $method->getVariants()[0]->getParameters()[0]->getType());
}
public function testAttributeTypeOfNoneExisting(): void
{
$classReflection = m::mock(ClassReflection::class);
$classReflection->shouldReceive('getName')->andReturn(Node::class);
$method = $this->fixture->getMethod($classReflection, 'setColor');
$this->assertInstanceOf(StringType::class, $method->getVariants()[0]->getParameters()[0]->getType());
}
}