FOSSology  4.4.0
Open Source License Compliance by Open Source Software
testClib.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014-2015 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
9 use Mockery as M;
10 
15 if (!function_exists('Traceback_uri'))
16 {
17  function Traceback_uri(){
18  return 'Traceback_uri_if_desired';
19  }
20 }
21 
22 class TestCLib extends \PHPUnit\Framework\TestCase
23 {
25  private $testDb;
26 
27  protected function setUp() : void
28  {
29  $this->testDb = new TestPgDb("testlibc".time());
30  }
31 
32  protected function tearDown() : void
33  {
34  $this->testDb = null;
35  }
36 
37  public function testIt()
38  {
39  $sysConf = $this->testDb->getFossSysConf();
40  $returnCode = 0;
41  $lines = array();
42  exec("./test_clibs ".$sysConf."/Db.conf", $lines, $returnCode);
43 
44  $this->assertEquals($expected=0, $returnCode, "error: ".implode("\n", $lines));
45  }
46 
47 
48 }
Traceback_uri()
Get the URI without query to this location.
Definition: common-parm.php:97