using phpunit to test controllers which are running in codeigniter3 requires further request/response mocking; setup of swagger-ui and swagger openapi doc generation for bookmark.php; WIP integration tests with ci3 & phpunit, maybe annotation generation solution for swagger annotations

This commit is contained in:
Szabo Mónika
2025-01-30 09:35:06 +01:00
committed by Johann Hoffmann
parent 37fa899540
commit 664796c69f
13 changed files with 558 additions and 83 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
use PHPUnit\Framework\TestCase;
class CI_TestCase extends TestCase
{
public $_ci;
public function setUp()
{
$this->_ci =& get_instance();
}
public function __get($name)
{
return $this->_ci->$name;
}
}