Skip to content

Commit

Permalink
fix(tests): pjbserver-tools fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
belgattitude committed Dec 21, 2019
1 parent 5e8274f commit 0cdda1b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/SolubleTestFactories.php
Expand Up @@ -28,7 +28,10 @@ class SolubleTestFactories
*/
public static function startJavaBridgeServer()
{
if ($_SERVER['AUTORUN_PJB_STANDALONE'] == 'true') {
// For multiple ways phpunit return true
if ($_SERVER['AUTORUN_PJB_STANDALONE'] === true ||
$_SERVER['AUTORUN_PJB_STANDALONE'] === 'true') {

if (self::$standaloneServer === null) {
$server_address = self::getJavaBridgeServerAddress();
//$url = parse_url($server_address, PHP_URL_HOST);
Expand All @@ -37,9 +40,11 @@ public static function startJavaBridgeServer()
$params = [
'port' => $port,
'classpaths' => [
//__DIR__ . '/resources/mysql-connector-java-5.1.36-bin.jar',
__DIR__.'/resources/*.jar'
]
__DIR__.'/resources/*.jar',
],
'server_jar' => __DIR__.'/../vendor/belgattitude/pjbserver-tools/resources/pjb713_standalone/JavaBridge.jar',
'log_file' => sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'soluble-japha-pjbserver.log',
'pid_file' => sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'soluble-japha-pjbserver.pid',
];

$config = new StandaloneServer\Config($params);
Expand Down

0 comments on commit 0cdda1b

Please sign in to comment.