17 $this->assertEquals( $expected,
$job->toString() );
21 $mockToStringObj = $this->getMockBuilder(
'stdClass' )
22 ->setMethods( [
'__toString' ] )->getMock();
23 $mockToStringObj->expects( $this->
any() )
24 ->method(
'__toString' )
25 ->will( $this->returnValue(
'{STRING_OBJ_VAL}' ) );
32 'someCommand ' . $requestId
36 'someCommand key=val ' . $requestId
39 $this->
getMockJob( [
'key' => [
'inkey' =>
'inval' ] ] ),
40 'someCommand key={"inkey":"inval"} ' . $requestId
44 'someCommand 0=val1 ' . $requestId
48 'someCommand 0=val1 1=val2 ' . $requestId
52 'someCommand 0=object(stdClass) ' . $requestId
56 'someCommand 0={STRING_OBJ_VAL} ' . $requestId
66 "rootJobSignature" =>
"45868e99bba89064e4483743ebb9b682ef95c1a7",
67 "rootJobTimestamp" =>
"20160309110158",
69 "file" =>
"db1023-bin.001288",
71 "asOfTime" => 1457521464.3814
73 "triggeredRecursive" =>
true
75 'someCommand pages={"932737":[0,"Robert_James_Waller"]} ' .
76 'rootJobSignature=45868e99bba89064e4483743ebb9b682ef95c1a7 ' .
77 'rootJobTimestamp=20160309110158 masterPos=' .
78 '{"file":"db1023-bin.001288","pos":"308257743","asOfTime":1457521464.3814} ' .
79 'triggeredRecursive=1 ' .
86 $mock = $this->getMockForAbstractClass(