tests/TestAuxFiles/PhpUnitTestProcess.php
/**
	 * Handle request
	 *
	 * @param string $data Data
	 */
Handle request
@param string $data Data
Handle request @param string $data Data
public function handleRequest(string $data)
	{
		if (preg_match('/^Sleep ([0-9]+(?:\\.[0-9]+)?)$/AD', $data, $match))
			usleep((int)((float)$match[1] * 1000000));
		if (preg_match('/^Error/A', $data, $match))
			error_log('Error-' . md5($data));
		print md5($data);
	}
public function handleRequest ( string $ data ) { if ( preg_match ( '/^Sleep ([0-9]+(?:\\.[0-9]+)?)$/AD' , $ data , $ match ) ) usleep ( ( int ) ( ( float ) $ match [ 1 ] * 1000000 ) ) ; if ( preg_match ( '/^Error/A' , $ data , $ match ) ) error_log ( 'Error-' . md5 ( $ data ) ) ; print md5 ( $ data ) ; }
Handle request
 @param string $data Data
Handle request @param string $data Data
// Check if we should sleep // Check if we should put error message // Return MD5 of data