mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
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:
committed by
Johann Hoffmann
parent
37fa899540
commit
664796c69f
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user