Fase 0: Configuración inicial del proyecto
- Configuración de Composer con PSR-4 - Configuración de PHPUnit - Configuración de PHPCS - Scripts de backup y rollback - Estructura de carpetas inicial - Documentación de procedimientos
This commit is contained in:
30
tests/Unit/ExampleTest.php
Normal file
30
tests/Unit/ExampleTest.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace ROITheme\Tests\Unit;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Test de ejemplo para verificar que PHPUnit funciona
|
||||
*/
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
public function testPhpUnitIsWorking(): void
|
||||
{
|
||||
$this->assertTrue(true, 'PHPUnit está funcionando correctamente');
|
||||
}
|
||||
|
||||
public function testPhpVersion(): void
|
||||
{
|
||||
$version = PHP_VERSION;
|
||||
$this->assertGreaterThanOrEqual('8.0.0', $version, 'PHP debe ser versión 8.0 o superior');
|
||||
}
|
||||
|
||||
public function testComposerAutoloadIsLoaded(): void
|
||||
{
|
||||
$this->assertTrue(
|
||||
class_exists('PHPUnit\Framework\TestCase'),
|
||||
'Composer autoload está funcionando'
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user