taskLite = new PhalApi\Task\Lite(new PhalApi\Task\MQ\FileMQ()); } protected function tearDown() { } /** * @group testAdd */ public function testAdd() { $service = 'Demo.Update'; $params = array ( 'id' => 888 ); $rs = $this->taskLite->add($service, $params); $this->assertTrue($rs); } public function testAddWrong() { $service = 'Demo'; $rs = $this->taskLite->add($service); $this->assertFalse($rs); } }