- Add comprehensive health check system with multiple endpoints - Add Prometheus metrics endpoint - Add production logging configurations (5 strategies) - Add complete deployment documentation suite: * QUICKSTART.md - 30-minute deployment guide * DEPLOYMENT_CHECKLIST.md - Printable verification checklist * DEPLOYMENT_WORKFLOW.md - Complete deployment lifecycle * PRODUCTION_DEPLOYMENT.md - Comprehensive technical reference * production-logging.md - Logging configuration guide * ANSIBLE_DEPLOYMENT.md - Infrastructure as Code automation * README.md - Navigation hub * DEPLOYMENT_SUMMARY.md - Executive summary - Add deployment scripts and automation - Add DEPLOYMENT_PLAN.md - Concrete plan for immediate deployment - Update README with production-ready features All production infrastructure is now complete and ready for deployment.
54 lines
1.6 KiB
PHP
54 lines
1.6 KiB
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
use App\Framework\View\DomWrapper;
|
|
use App\Framework\Template\Parser\DomTemplateParser;
|
|
|
|
// Simulate the first failing test
|
|
$html = '<html><body><x-counter id="demo" initialValue="10" /></body></html>';
|
|
|
|
echo "=== Original HTML ===\n";
|
|
echo $html . "\n\n";
|
|
|
|
// Parse with DomTemplateParser (which uses lexer)
|
|
$parser = new DomTemplateParser();
|
|
$document = $parser->parse($html);
|
|
|
|
echo "=== After DomTemplateParser ===\n";
|
|
echo $document->saveHTML() . "\n\n";
|
|
|
|
// Create DomWrapper
|
|
$dom = new DomWrapper($document);
|
|
|
|
echo "=== Body content ===\n";
|
|
$body = $dom->document->getElementsByTagName('body')[0] ?? null;
|
|
if ($body) {
|
|
echo "Body innerHTML: " . ($body->textContent ?? 'null') . "\n";
|
|
echo "Body children count: " . $body->childNodes->length . "\n";
|
|
|
|
foreach ($body->childNodes as $child) {
|
|
echo " Child: " . get_class($child) . " - " . ($child->nodeName ?? 'no name') . "\n";
|
|
}
|
|
} else {
|
|
echo "No body found\n";
|
|
}
|
|
|
|
// Find x-counter elements
|
|
echo "\n=== Finding x-counter elements ===\n";
|
|
$xComponents = [];
|
|
$allElements = $dom->document->getElementsByTagName('*');
|
|
|
|
foreach ($allElements as $element) {
|
|
if ($element instanceof \Dom\HTMLElement && str_starts_with(strtolower($element->tagName), 'x-')) {
|
|
echo "Found: " . $element->tagName . "\n";
|
|
echo " Attributes: " . $element->attributes->length . "\n";
|
|
foreach ($element->attributes as $attr) {
|
|
echo " " . $attr->nodeName . "=" . $attr->nodeValue . "\n";
|
|
}
|
|
$xComponents[] = $element;
|
|
}
|
|
}
|
|
|
|
echo "\nTotal x-components found: " . count($xComponents) . "\n";
|