24 lines
510 B
PHP
24 lines
510 B
PHP
<?php
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class apiconfig extends TestCase{
|
|
|
|
|
|
public function checkConfig(){
|
|
|
|
/* [1] Check configuration
|
|
=========================================================*/
|
|
/* (1) Check file */
|
|
$path = __CONFIG__.'/modules.json';
|
|
$this->assertFileExists($path);
|
|
|
|
/* (2) Checks json */
|
|
$config = json_decode( file_get_contents($path), true );
|
|
$this->assertNotNull($config);
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
?>
|