@@ -7462,7 +7462,7 @@ public function testSession_lock_ttlMaxExecutionTime()
74627462 $ end = microtime (true );
74637463 $ elapsedTime = $ end - $ start ;
74647464
7465- $ this ->assertTrue ($ elapsedTime < 3 );
7465+ $ this ->assertLess ($ elapsedTime, 3 );
74667466 $ this ->assertTrue ($ sessionSuccessful );
74677467 }
74687468
@@ -7543,7 +7543,7 @@ public function testSession_defaultLockRetryCount()
75437543 $ end = microtime (true );
75447544 $ elapsedTime = $ end - $ start ;
75457545
7546- $ this ->assertTrue ($ elapsedTime > 2 && $ elapsedTime < 3 );
7546+ $ this ->assertBetween ($ elapsedTime, 2 , 3 );
75477547 $ this ->assertFalse ($ sessionSuccessful );
75487548 }
75497549
@@ -7931,7 +7931,14 @@ private function startSessionProcess($sessionId, $sleepTime, $background,
79317931
79327932 exec ($ command , $ output );
79337933
7934- return ($ background || (count ($ output ) == 1 && $ output [0 ] == 'SUCCESS ' ));
7934+ if ($ background )
7935+ return true ;
7936+
7937+ $ result = $ output [0 ] == 'SUCCESS ' ;
7938+
7939+ // var_dump(['command' => $command, 'output' => $output, 'result' => $result]);
7940+
7941+ return $ result ;
79357942 }
79367943
79377944 /**
@@ -8006,11 +8013,12 @@ private function getPhpCommand($script)
80068013 if (!$ cmd ) {
80078014 $ cmd = (getenv ('TEST_PHP_EXECUTABLE ' ) ?: PHP_BINARY );
80088015
8009- if ( $ test_args = getenv ('TEST_PHP_ARGS ' )) {
8010- $ cmd .= ' ' ;
8011- $ cmd .= $ test_args ;
8016+ $ test_args = getenv ('TEST_PHP_ARGS ' );
8017+ if ( $ test_args !== false ) {
8018+ $ cmd .= ' ' . $ test_args ;
80128019 } else {
8013- /* Only append specific extension directives if PHP hasn't been compiled with what we need statically */
8020+ /* Only append specific extension directives if PHP hasn't been compiled
8021+ * with what we need statically */
80148022 $ modules = shell_exec ("$ cmd --no-php-ini -m " );
80158023
80168024 /* Determine if we need to specifically add extensions */
0 commit comments