*/ class AbstractActionTest extends TestCase { public function testGetId() { $action = new ConcreteAction(); $this->assertEquals(ConcreteAction::class, $action->getId()); } public function testGetResult() { $action = new ConcreteAction(); $action->setResult('result'); $this->assertEquals('result', $action->getResult()); } public function testSetResult() { $action = new ConcreteAction(); $action->setResult('result'); $this->assertEquals('result', $action->getResult()); } public function testGetResultException() { $this->expectException(ActionQueueException::class); $action = new ConcreteAction(); $action->getResult(); } } class ConcreteAction extends AbstractQueuedAction { public function __invoke($params) { return 'getmypid'; } public function getNumberOfActiveActions() { return 10; } }