$ErrorActionPreference = 'Stop' function Assert-True { param( [bool]$Condition, [string]$Message ) if (-not $Condition) { throw $Message } } Assert-True (Test-Path 'index.php') 'Missing index.php' $index = Get-Content -Raw 'index.php' if ($index -match 'pages/home.php') { Assert-True (Test-Path 'pages/home.php') 'Missing pages/home.php' $homeContent = Get-Content -Raw 'pages/home.php' Assert-True ($homeContent -match 'Portfolio') 'home.php missing Portfolio text' Assert-True ($homeContent -match 'text-primary') 'home.php missing text-primary class' Assert-True ($homeContent -match 'btn-primary') 'home.php missing btn-primary class' } else { Assert-True ($index -match 'Portfolio') 'index.php missing Portfolio text' Assert-True ($index -match 'text-primary') 'index.php missing text-primary class' Assert-True ($index -match 'badge') 'index.php missing badge class' Assert-True ($index -match 'btn-primary') 'index.php missing btn-primary class' } 'OK'