repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/ProcessMaker/Test/Models/TestOneClassWithEmptyConstructor.php | tests/ProcessMaker/Test/Models/TestOneClassWithEmptyConstructor.php | <?php
namespace ProcessMaker\Test\Models;
use ProcessMaker\Test\Contracts\TestOneInterface;
/**
* TestOneClassWithEmptyConstructor
*/
class TestOneClassWithEmptyConstructor implements TestOneInterface
{
public $aField;
/**
* Test constructor
*/
public function __construct()
{
$th... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/ProcessMaker/Bpmn/TestEngine.php | tests/ProcessMaker/Bpmn/TestEngine.php | <?php
namespace ProcessMaker\Bpmn;
use ProcessMaker\Nayra\Contracts\Engine\EngineInterface;
use ProcessMaker\Nayra\Contracts\Engine\EventDefinitionBusInterface;
use ProcessMaker\Nayra\Contracts\Engine\JobManagerInterface;
use ProcessMaker\Nayra\Contracts\EventBusInterface;
use ProcessMaker\Nayra\Contracts\RepositoryI... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Patterns/PatternsTest.php | tests/Feature/Patterns/PatternsTest.php | <?php
namespace Tests\Feature\Patterns;
use Exception;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CallActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ErrorInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\IntermediateCatchEventInterface;
use ProcessMaker\Nay... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ExclusiveGatewayTest.php | tests/Feature/Engine/ExclusiveGatewayTest.php | <?php
namespace Tests\Feature\Engine;
use Exception;
use ProcessMaker\Nayra\Bpmn\DefaultTransition;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInter... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/MultiInstanceTest.php | tests/Feature/Engine/MultiInstanceTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ScriptTaskInterfac... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | true |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ActivityTest.php | tests/Feature/Engine/ActivityTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Activity;
use ProcessMaker\Nayra\Contracts\Bpmn\BoundaryEventInterface;
use ProcessMaker\Nayra\Storage\BpmnDocument;
use Tests\Feature\Engine\EngineTestCase;
/**
* Tests the activity collection
*/
class ActivityTest extends EngineTestCase
{
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/LoadFromBPMNFileTest.php | tests/Feature/Engine/LoadFromBPMNFileTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CallableElementInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CatchEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ConditionalEventDefinitionInterface;
use ProcessMaker\Nayra\Co... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/IntermediateTimerEventTest.php | tests/Feature/Engine/IntermediateTimerEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\IntermediateCatc... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/MessageEndEventTest.php | tests/Feature/Engine/MessageEndEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\DataStoreCollection;
use ProcessMaker\Nayra\Bpmn\Models\Participant;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMake... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/EngineTestCase.php | tests/Feature/Engine/EngineTestCase.php | <?php
namespace Tests\Feature\Engine;
use DateInterval;
use DateTime;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Bpmn\TestEngine;
use ProcessMaker\Nayra\Bpmn\Models\DatePeriod;
use ProcessMaker\Nayra\Bpmn\Models\EventDefinitionBus;
use ProcessMaker\Nayra\Contracts\Bpmn\BoundaryEventInterface;
use ProcessMaker\N... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ServiceTaskTest.php | tests/Feature/Engine/ServiceTaskTest.php | <?php
namespace Tests\Feature\Engine;
use Exception;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\Ser... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/LoadExecutionInstancesTest.php | tests/Feature/Engine/LoadExecutionInstancesTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ActivityExceptionTest.php | tests/Feature/Engine/ActivityExceptionTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\ActivityTrait;
use ProcessMaker\Nayra\Bpmn\Events\ActivityActivatedEvent;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use Pr... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/EventBasedGatewayTest.php | tests/Feature/Engine/EventBasedGatewayTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CatchEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventBasedGatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\Gatewa... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/JobManagerTest.php | tests/Feature/Engine/JobManagerTest.php | <?php
namespace Tests\Feature\Engine;
use DateInterval;
use DateTime;
use ProcessMaker\Nayra\Engine\JobManagerTrait;
use ProcessMaker\Nayra\Storage\BpmnDocument;
/**
* Start Timer Event tests
*/
class JobManagerTest extends EngineTestCase
{
use JobManagerTrait;
/**
* Test the job manager date time cy... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/StartTimerEventTest.php | tests/Feature/Engine/StartTimerEventTest.php | <?php
namespace Tests\Feature\Engine;
use DateInterval;
use DateTime;
use ProcessMaker\Nayra\Bpmn\Models\DatePeriod;
use ProcessMaker\Nayra\Storage\BpmnDocument;
/**
* Start Timer Event tests
*/
class StartTimerEventTest extends EngineTestCase
{
/**
* Test the start timer event with a date time specified ... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/SaveExecutionInstancesTest.php | tests/Feature/Engine/SaveExecutionInstancesTest.php | <?php
namespace Tests\Feature\Engine;
use Exception;
use ProcessMaker\Nayra\Bpmn\Events\ActivityActivatedEvent;
use ProcessMaker\Nayra\Bpmn\Events\ActivityClosedEvent;
use ProcessMaker\Nayra\Bpmn\Events\ActivityCompletedEvent;
use ProcessMaker\Nayra\Bpmn\Events\ProcessInstanceCompletedEvent;
use ProcessMaker\Nayra\Bp... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ErrorEndEventTest.php | tests/Feature/Engine/ErrorEndEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ErrorEventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\Proce... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ScriptTaskTest.php | tests/Feature/Engine/ScriptTaskTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Process;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessM... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ExclusiveGatewayDemoTest.php | tests/Feature/Engine/ExclusiveGatewayDemoTest.php | <?php
namespace Tests\Feature\Engine;
use Exception;
use ProcessMaker\Nayra\Bpmn\Models\Flow;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInterface;
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/IntermediateMessageEventTest.php | tests/Feature/Engine/IntermediateMessageEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\Participant;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use Proces... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/BoundaryEventTest.php | tests/Feature/Engine/BoundaryEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\DatePeriod;
use ProcessMaker\Nayra\Bpmn\Models\ErrorEventDefinition;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\BoundaryEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\CallActivityInterfa... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | true |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/SchemaValidationTest.php | tests/Feature/Engine/SchemaValidationTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Storage\BpmnDocument;
/**
* Test a terminate event.
*/
class SchemaValidationTest extends EngineTestCase
{
/**
* Test terminate end event
*/
public function testValidDefinitions()
{
//Load a BpmnFile Repository
$bpmn... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/SignalEndEventTest.php | tests/Feature/Engine/SignalEndEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\DataStoreCollection;
use ProcessMaker\Nayra\Bpmn\Models\Participant;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessM... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ParallelGatewayTest.php | tests/Feature/Engine/ParallelGatewayTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInterface... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/BpmnDocumentHtmlEntitiesTest.php | tests/Feature/Engine/BpmnDocumentHtmlEntitiesTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Storage\BpmnDocument;
use DOMDocument;
/**
* Test for handling HTML entities in BPMN files.
*/
class BpmnDocumentHtmlEntitiesTest extends EngineTestCase
{
/**
* Test the replaceHtmlEntities method directly.
*/
public function testReplac... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/InclusiveGatewayTest.php | tests/Feature/Engine/InclusiveGatewayTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\DefaultTransition;
use ProcessMaker\Nayra\Bpmn\Models\InclusiveGateway;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use Proc... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/InclusiveGatewayDemoTest.php | tests/Feature/Engine/InclusiveGatewayDemoTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ParallelGatewayDemoTest.php | tests/Feature/Engine/ParallelGatewayDemoTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/BasicsTest.php | tests/Feature/Engine/BasicsTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DiagramInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/NayraModelTest.php | tests/Feature/Engine/NayraModelTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\DataStoreCollection;
use ProcessMaker\Nayra\Bpmn\Models\EventDefinitionBus;
use ProcessMaker\Nayra\Bpmn\Models\Participant;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMak... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/SignalStartEventTest.php | tests/Feature/Engine/SignalStartEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\DataStoreCollection;
use ProcessMaker\Nayra\Bpmn\Models\Participant;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMake... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/CallActivityTest.php | tests/Feature/Engine/CallActivityTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ScriptTaskInterfac... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/ConditionalStartEventTest.php | tests/Feature/Engine/ConditionalStartEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Storage\BpmnDocument;
/**
* Test a condition start event.
*/
class ConditionalStartEventTest extends EngineTestCase
{
/**
* Test conditional start event
*/
public function testCo... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/LanesTest.php | tests/Feature/Engine/LanesTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EndEventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\StartEventInterface;
use ProcessMaker\Nayra\Contracts\Engine\ExecutionIn... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/TerminateEventTest.php | tests/Feature/Engine/TerminateEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\GatewayInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ScriptTaskInterface... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/Feature/Engine/MessageStartEventTest.php | tests/Feature/Engine/MessageStartEventTest.php | <?php
namespace Tests\Feature\Engine;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\DataStoreCollection;
use ProcessMaker\Nayra\Bpmn\Models\Participant;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\EventInterface;
use ProcessMake... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/RepositoryTest.php | tests/unit/ProcessMaker/Nayra/RepositoryTest.php | <?php
namespace ProcessMaker\Nayra;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Test\Contracts\TestOneInterface;
use ProcessMaker\Test\Contracts\TestTwoInterface;
use ProcessMaker\Test\Models\Repository;
use ProcessMaker\Test\Models\TestOneClassWithEmptyConstructor;
use ProcessMaker... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ArtifactCollectionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ArtifactCollectionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Artifact;
use ProcessMaker\Nayra\Bpmn\Models\ArtifactCollection;
/**
* Tests for the artifact collection
*/
class ArtifactCollectionTest extends TestCase
{
/**
* Test the adding of items to the coll... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/CollectionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/CollectionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
class CollectionTest extends TestCase
{
/**
* @var Collection
*/
private $object;
public function setUp(): void
{
parent::setUp();
$this->object = new Collection([1, 2, 3]);
}
/**
* Test ... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ErrorTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ErrorTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Error;
use ProcessMaker\Nayra\Bpmn\Models\MessageFlow;
use ProcessMaker\Nayra\Contracts\Bpmn\ErrorInterface;
/**
* Tests for the Error class
*/
class ErrorTest extends TestCase
{
/**
* Tests that se... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/InputOutputSpecificationTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/InputOutputSpecificationTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\InputOutputSpecification;
use ProcessMaker\Nayra\Bpmn\Models\InputSet;
use ProcessMaker\Nayra\Bpmn\Models\OutputSet;
/**
* Tests InputOutputSpecification class implementation
*/
class InputOutputSpecificatio... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ProcessTraitTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ProcessTraitTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Process;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityCollectionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ArtifactCollectionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreCollectionInterface;... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/PathTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/PathTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Path;
class PathTest extends TestCase
{
/**
* Tests that a path stores and returns correctly its elements
*/
public function testGetElement()
{
//Create a new empty path
$path = ... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ScriptTaskTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ScriptTaskTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\ScriptTask;
/**
* Tests for the Operation class
*/
class ScriptTaskTest extends TestCase
{
/**
* Tests that setters and getters are working properly
*/
public function testSettersAndGetters... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/DatePeriodTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/DatePeriodTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use DateInterval;
use DatePeriod as GlobalDatePeriod;
use DateTime;
use DateTimeZone;
use Exception;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\DatePeriod;
/**
* Tests for the DatePeriod class
*/
class DatePeriodTest extends TestCase
{
public fun... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/EventCollectionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/EventCollectionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\EventCollection;
use ProcessMaker\Nayra\Bpmn\Models\StartEvent;
/**
* Tests for the event collection
*/
class EventCollectionTest extends TestCase
{
/**
* Test the adding of items to the collection
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/IntermediateThrowEventTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/IntermediateThrowEventTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\IntermediateThrowEvent;
/**
* Tests for the IntermediateThrowEvent class
*/
class IntermediateThrowEventTest extends TestCase
{
/**
* Tests that setters and getters are working properly
*/
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ObservableTraitTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ObservableTraitTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\InclusiveGateway;
use ProcessMaker\Nayra\Contracts\Bpmn\TransitionInterface;
/**
* Test attach/detach observers.
*/
class ObservableTraitTest extends TestCase
{
/**
* Dummy function to test if a cal... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/CollaborationTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/CollaborationTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\StartEvent;
/**
* Tests for the Collaboration class
*/
class CollaborationTest extends TestCase
{
/**
* Tests that setters and getters are working p... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/BoundaryEventTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/BoundaryEventTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\BoundaryEvent;
/**
* Unit tests for the BoundaryEvent class
*/
class BoundaryEventTest extends TestCase
{
/**
* Tests that the input place of a boundary event must be null
*/
public functio... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/MessageEventDefinitionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/MessageEventDefinitionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\MessageEventDefinition;
use ProcessMaker\Nayra\Bpmn\Models\Message;
use ProcessMaker\Nayra\Bpmn\Collection;
use ProcessMaker\Nayra\Contracts\Bpmn\EventDefinitionInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/MessageFlowTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/MessageFlowTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Collaboration;
use ProcessMaker\Nayra\Bpmn\Models\EndEvent;
use ProcessMaker\Nayra\Bpmn\Models\IntermediateCatchEvent;
use ProcessMaker\Nayra\Bpmn\Models\Message;
use ProcessMaker\Nayra\Bpmn\Models\MessageEvent... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/SignalTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/SignalTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Signal;
/**
* Tests for the Signal class
*/
class SignalTest extends TestCase
{
/**
* Tests that setters and getters are working properly
*/
public function testSettersAndGetters()
{
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/GatewayCollectionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/GatewayCollectionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\GatewayCollection;
use ProcessMaker\Nayra\Bpmn\Models\InclusiveGateway;
/**
* Tests for the gateway collection
*/
class GatewayCollectionTest extends TestCase
{
/**
* Test the adding of items to the... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/MessageTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/MessageTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Message;
/**
* Tests for the Message class
*/
class MessageTest extends TestCase
{
/**
* Tests that setters and getters are working properly
*/
public function testSettersAndGetters()
{... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/MultiInstanceLoopCharacteristicsTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/MultiInstanceLoopCharacteristicsTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\DataInput;
use ProcessMaker\Nayra\Bpmn\Models\DataOutput;
use ProcessMaker\Nayra\Bpmn\Models\MultiInstanceLoopCharacteristics;
use ProcessMaker\Nayra\Contracts\Bpmn\ComplexBehaviorDefinitionInterface;
use Proce... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ConditionedTransitionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ConditionedTransitionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\DataStore;
use ProcessMaker\Nayra\Bpmn\Models\ExclusiveGateway;
use ProcessMaker\Nayra\Bpmn\Models\Process;
use ProcessMaker\Nayra\Contracts\Engine\EngineInterface;
/**
* Tests for the ConditionedTransition c... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/FlowCollectionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/FlowCollectionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Flow;
use ProcessMaker\Nayra\Bpmn\Models\FlowCollection;
/**
* Tests for the flow collection
*/
class FlowCollectionTest extends TestCase
{
/**
* Test the adding of items to the collection
*/
... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/StartEventTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/StartEventTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\StartEvent;
/**
* StartEvent unit test.
*/
class StartEventTest extends TestCase
{
/**
* Tests that the input place of a start event must be null
*/
public function testGetInputPlaceOfNewEl... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ActivityCollectionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ActivityCollectionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Activity;
use ProcessMaker\Nayra\Bpmn\Models\ActivityCollection;
/**
* Tests the activity collection
*/
class ActivityCollectionTest extends TestCase
{
/**
* Test the adding of items to the collecti... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/DataStoreTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/DataStoreTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use ProcessMaker\Nayra\Contracts\Bpmn\ActivityInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\StateInterface;
use Tests\Feature\Engine\EngineTestCase;
/**
* Tes... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ArtifactTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ArtifactTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Artifact;
use ProcessMaker\Nayra\Bpmn\Models\Process;
class ArtifactTest extends TestCase
{
/**
* Tests that setters and getters are working properly
*/
public function testSettersAndGetters(... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/ConditionedExclusiveTransitionTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/ConditionedExclusiveTransitionTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\DataStore;
use ProcessMaker\Nayra\Bpmn\Models\ExclusiveGateway;
use ProcessMaker\Nayra\Bpmn\Models\Process;
use ProcessMaker\Nayra\Contracts\Engine\EngineInterface;
/**
* Tests for the ConditionedTransition c... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/OperationTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/OperationTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Message;
use ProcessMaker\Nayra\Bpmn\Models\Operation;
use ProcessMaker\Nayra\Contracts\Bpmn\OperationInterface;
/**
* Tests for the Operation class
*/
class OperationTest extends TestCase
{
/**
* T... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Bpmn/BaseTraitTest.php | tests/unit/ProcessMaker/Nayra/Bpmn/BaseTraitTest.php | <?php
namespace ProcessMaker\Nayra\Bpmn;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Nayra\Bpmn\Models\Process;
use ProcessMaker\Nayra\Contracts\Bpmn\EntityInterface;
/**
* Test the base trait behavior.
*/
class BaseTraitTest extends TestCase
{
/**
* Test ID property getter and setter
*/
pub... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
ProcessMaker/nayra | https://github.com/ProcessMaker/nayra/blob/19d721d6bd27f80d33288125488b244e83b6e191/tests/unit/ProcessMaker/Nayra/Engine/ExecutionInstanceTest.php | tests/unit/ProcessMaker/Nayra/Engine/ExecutionInstanceTest.php | <?php
namespace ProcessMaker\Nayra\Engine;
use PHPUnit\Framework\TestCase;
use ProcessMaker\Bpmn\TestEngine;
use ProcessMaker\Nayra\Contracts\Bpmn\DataStoreInterface;
use ProcessMaker\Nayra\Contracts\Bpmn\ProcessInterface;
use ProcessMaker\Nayra\Contracts\EventBusInterface;
use ProcessMaker\Test\Models\Repository;
/... | php | Apache-2.0 | 19d721d6bd27f80d33288125488b244e83b6e191 | 2026-01-05T05:04:52.897638Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/Vote.php | src/Vote.php | <?php
namespace Jcc\LaravelVote;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use Illuminate\Support\Facades\Auth;
use Jcc\LaravelVote\Events\CancelVoted;
use Jcc\LaravelVote\Events\Voted;
/**
* Class Vote
*
* @property strin... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/VoteItems.php | src/VoteItems.php | <?php
namespace Jcc\LaravelVote;
use Jcc\LaravelVote\Exceptions\UnexpectValueException;
use Stringable;
final class VoteItems implements Stringable
{
/**
* @var string
*/
protected $value;
public const UP = 'up_vote';
public const DOWN = 'down_vote';
public function __construct(strin... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/VoteServiceProvider.php | src/VoteServiceProvider.php | <?php
/*
* This file is part of the jcc/laravel-vote.
*
* (c) jcc <changejian@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Jcc\LaravelVote;
use Illuminate\Support\ServiceProvider;
class VoteServiceProvider extends Serv... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/Exceptions/UnexpectValueException.php | src/Exceptions/UnexpectValueException.php | <?php
namespace Jcc\LaravelVote\Exceptions;
use Exception;
class UnexpectValueException extends Exception
{
}
| php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/Traits/Votable.php | src/Traits/Votable.php | <?php
namespace Jcc\LaravelVote\Traits;
use Illuminate\Database\Eloquent\Model;
use Jcc\LaravelVote\VoteItems;
/**
* Trait Votable
*
* @mixin \Illuminate\Database\Eloquent\Model
*/
trait Votable
{
/**
* @param \Illuminate\Database\Eloquent\Model $user
*
* @return bool
*/
public functi... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/Traits/Voter.php | src/Traits/Voter.php | <?php
namespace Jcc\LaravelVote\Traits;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Jcc\LaravelVote\Vote;
use Jcc\LaravelVote\VoteItems;
/**
* Trait Voter
*
* @mixin \Illuminate\Database\Eloquent\Model
*/
trait Voter
{
/**
* @param Model $object
... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/Events/CancelVoted.php | src/Events/CancelVoted.php | <?php
namespace Jcc\LaravelVote\Events;
class CancelVoted extends Event
{
}
| php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/Events/Event.php | src/Events/Event.php | <?php
namespace Jcc\LaravelVote\Events;
use Illuminate\Database\Eloquent\Model;
class Event
{
/**
* @var \Illuminate\Database\Eloquent\Model
*/
public $vote;
/**
* Event constructor.
*
* @param \Illuminate\Database\Eloquent\Model $vote
*/
public function __construct(Mod... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/src/Events/Voted.php | src/Events/Voted.php | <?php
namespace Jcc\LaravelVote\Events;
class Voted extends Event
{
}
| php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/User.php | tests/User.php | <?php
namespace Jcc\LaravelVote\Tests;
use Illuminate\Database\Eloquent\Model;
use Jcc\LaravelVote\Traits\Votable;
use Jcc\LaravelVote\Traits\Voter;
class User extends Model
{
use Voter;
use Votable;
protected $fillable = ['name'];
}
| php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/TestCase.php | tests/TestCase.php | <?php
namespace Jcc\LaravelVote\Tests;
use Jcc\LaravelVote\VoteServiceProvider;
abstract class TestCase extends \Orchestra\Testbench\TestCase
{
/**
* Load package service provider.
*
* @param \Illuminate\Foundation\Application $app
*
* @return array
*/
protected function getPack... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/FeatureTest.php | tests/FeatureTest.php | <?php
namespace Jcc\LaravelVote\Tests;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Jcc\LaravelVote\Events\Voted;
use Jcc\LaravelVote\Exceptions\UnexpectValueException;
use Jcc\LaravelVote\VoteItems;
class FeatureTest extends TestCa... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/Post.php | tests/Post.php | <?php
namespace Jcc\LaravelVote\Tests;
use Illuminate\Database\Eloquent\Model;
use Jcc\LaravelVote\Traits\Votable;
class Post extends Model
{
use Votable;
protected $fillable = ['title'];
}
| php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/Book.php | tests/Book.php | <?php
namespace Jcc\LaravelVote\Tests;
use Illuminate\Database\Eloquent\Model;
use Jcc\LaravelVote\Traits\Votable;
class Book extends Model
{
use Votable;
protected $fillable = ['title'];
}
| php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/migrations/2021_03_13_000000_create_posts_table.php | tests/migrations/2021_03_13_000000_create_posts_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('posts', function (Blueprint $table) {
... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/migrations/2021_03_13_000000_create_books_table.php | tests/migrations/2021_03_13_000000_create_books_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBooksTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('books', function (Blueprint $table) {
... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/tests/migrations/2021_03_13_000000_create_users_table.php | tests/migrations/2021_03_13_000000_create_users_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/migrations/2021_03_13_000000_create_votes_table.php | migrations/2021_03_13_000000_create_votes_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVotesTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create(config('vote.votes_table'), function (Bluepri... | php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
jcc/laravel-vote | https://github.com/jcc/laravel-vote/blob/b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330/config/vote.php | config/vote.php | <?php
return [
'votes_table' => 'votes',
'user_foreign_key' => 'user_id',
'vote_model' => \Jcc\LaravelVote\Vote::class,
];
| php | MIT | b2ff453c2e8bbb5b9620e1a75f8dcddd6e1bd330 | 2026-01-05T05:05:05.783905Z | false |
hooklife/thinkphp5-wechat | https://github.com/hooklife/thinkphp5-wechat/blob/a66a075a9c52cd7dadfe357ad88ac2fc20193fa6/src/Wechat.php | src/Wechat.php | <?php
/**
* Created by PhpStorm.
* User: hooklife
* Date: 2017/1/12
* Time: 12:00
*/
namespace Hooklife\ThinkphpWechat;
use EasyWeChat\Foundation\Application;
use think\Config;
/**
* Class Wechat 微信类
* @package Hooklife\ThinkphpWechat
* @method static \EasyWeChat\Core\AccessToken access_token... | php | Apache-2.0 | a66a075a9c52cd7dadfe357ad88ac2fc20193fa6 | 2026-01-05T05:05:14.818097Z | false |
hooklife/thinkphp5-wechat | https://github.com/hooklife/thinkphp5-wechat/blob/a66a075a9c52cd7dadfe357ad88ac2fc20193fa6/src/config.php | src/config.php | <?php
/**
* Created by PhpStorm.
* User: hooklife
* Date: 2017/1/12
* Time: 11:52
*/
return [
/**
* Debug 模式,bool 值:true/false
*
* 当值为 false 时,所有的日志都不会记录
*/
'debug' => true,
/**
* 账号基本信息,请从微信公众平台/开放平台获取
*/
'app_id' => 'your-app-id', // AppID
'secret' => ... | php | Apache-2.0 | a66a075a9c52cd7dadfe357ad88ac2fc20193fa6 | 2026-01-05T05:05:14.818097Z | false |
hooklife/thinkphp5-wechat | https://github.com/hooklife/thinkphp5-wechat/blob/a66a075a9c52cd7dadfe357ad88ac2fc20193fa6/src/helper.php | src/helper.php | <?php
/**
* Created by PhpStorm.
* User: hooklife
* Date: 2017/1/12
* Time: 15:32
*/
\think\Console::addDefaultCommands([
\Hooklife\ThinkphpWechat\Command\SendConfig::class
]);
if (!function_exists('wechat')) {
/**
* @param $name
* @return mixed
*/
function wechat($name)
{
... | php | Apache-2.0 | a66a075a9c52cd7dadfe357ad88ac2fc20193fa6 | 2026-01-05T05:05:14.818097Z | false |
hooklife/thinkphp5-wechat | https://github.com/hooklife/thinkphp5-wechat/blob/a66a075a9c52cd7dadfe357ad88ac2fc20193fa6/src/Command/SendConfig.php | src/Command/SendConfig.php | <?php
namespace Hooklife\ThinkphpWechat\Command;
/**
* Created by PhpStorm.
* User: hooklife
* Date: 2017/1/12
* Time: 15:39
*/
use think\console\Command;
use think\console\Input;
use think\console\Output;
class SendConfig extends Command
{
public function configure()
{
$this->setName('wechat:con... | php | Apache-2.0 | a66a075a9c52cd7dadfe357ad88ac2fc20193fa6 | 2026-01-05T05:05:14.818097Z | false |
luxixing/swoole-task | https://github.com/luxixing/swoole-task/blob/4f60a6f8185983c956d7c26f16c5819a58b96a71/src/HttpServer.php | src/HttpServer.php | <?php
/**
* 基于swoole扩展的http-server封装的一个接受异步任务请求的http服务器
*/
namespace Ping\SwooleTask;
use Ping\SwooleTask\Base\App as BaseApp;
class HttpServer
{
/**
* swoole http-server 实例
*
* @var null | swoole_http_server
*/
private $server = null;
/**
* 应用实例
*
* @var null | BaseA... | php | MIT | 4f60a6f8185983c956d7c26f16c5819a58b96a71 | 2026-01-05T05:05:27.542964Z | false |
luxixing/swoole-task | https://github.com/luxixing/swoole-task/blob/4f60a6f8185983c956d7c26f16c5819a58b96a71/src/Base/Helper.php | src/Base/Helper.php | <?php
namespace Ping\SwooleTask\Base;
/**
* Class UtilsHelper
* 一些通用方法
*/
class Helper
{
public static function convertSize($size)
{
//FIXME size 负数是记录异常
$size = abs($size);
$unit = ['b', 'kb', 'mb', 'gb', 'tb', 'pb'];
return @round($size / pow(1024, ($i = floor(log($size, 1... | php | MIT | 4f60a6f8185983c956d7c26f16c5819a58b96a71 | 2026-01-05T05:05:27.542964Z | false |
luxixing/swoole-task | https://github.com/luxixing/swoole-task/blob/4f60a6f8185983c956d7c26f16c5819a58b96a71/src/Base/App.php | src/Base/App.php | <?php
/**
* 应用入口App,框架的唯一入口
*/
namespace Ping\SwooleTask\Base;
class App
{
/**
* 当前请求协议 key="fromId#taskId" value="ctrl.action"
*
* @var array
*/
private $_op = [];
/**
* 当前请求ctrl,key="fromId#taskId" value=CtrlClass(包括namespace)
*
* @var array
*/
private $_... | php | MIT | 4f60a6f8185983c956d7c26f16c5819a58b96a71 | 2026-01-05T05:05:27.542964Z | false |
luxixing/swoole-task | https://github.com/luxixing/swoole-task/blob/4f60a6f8185983c956d7c26f16c5819a58b96a71/src/Base/Dao.php | src/Base/Dao.php | <?php
namespace Ping\SwooleTask\Base;
/**
* Class Dao
*
* @package base
*/
class Dao
{
/**
* 当前所有连接实例
*
* @var \PDO[]
*/
private static $_pdo = [];
/**
* 执行日志记录
*
* @var array
*/
private static $_log = [];
/**
* 是否调试模式
*
* @var bool
*... | php | MIT | 4f60a6f8185983c956d7c26f16c5819a58b96a71 | 2026-01-05T05:05:27.542964Z | false |
luxixing/swoole-task | https://github.com/luxixing/swoole-task/blob/4f60a6f8185983c956d7c26f16c5819a58b96a71/src/Base/Ctrl.php | src/Base/Ctrl.php | <?php
namespace Ping\SwooleTask\Base;
/**
* Class BaseCtrl
*/
class Ctrl
{
const ERRNO_SUCCESS = 0;//成功
const ERRNO_PARAM = 1;//参数错误
const ERROR_SUCCESS = 'OK';
const ERROR_PARAM = 'Params invalid';
/**
* dao 单例
*
* @var array
*/
private $_dao = [
];
/**
... | php | MIT | 4f60a6f8185983c956d7c26f16c5819a58b96a71 | 2026-01-05T05:05:27.542964Z | false |
luxixing/swoole-task | https://github.com/luxixing/swoole-task/blob/4f60a6f8185983c956d7c26f16c5819a58b96a71/bin/function.php | bin/function.php | <?php
/**
* 首次启动swoole-task 服务时初始化应用
*
* @param string swooleTaskAppName swoole-task 业务目录名称
* @param array conf 覆盖默认配置可传递相关参数
*
* @throws Exception
*/
function swTaskInit($appDir)
{
/**
* @var array 默认配置
*/
$conf = [
'app' => [
'ns_pre' => 'SwTask',//swoole-task 应用默认 namesp... | php | MIT | 4f60a6f8185983c956d7c26f16c5819a58b96a71 | 2026-01-05T05:05:27.542964Z | false |
luxixing/swoole-task | https://github.com/luxixing/swoole-task/blob/4f60a6f8185983c956d7c26f16c5819a58b96a71/bin/swoole-task.php | bin/swoole-task.php | #!/bin/env php
<?php
/**
* 设置错误报告模式
*/
error_reporting(E_ALL);
/**
* 检查exec 函数是否启用
*/
if (!function_exists('exec')) {
exit('exec function is disabled' . PHP_EOL);
}
/**
* 检查命令 lsof 命令是否存在
*/
exec("whereis lsof", $out);
if ($out[0] == 'lsof:') {
exit('lsof is not found' . PHP_EOL);
}
define('DS', DIRECT... | php | MIT | 4f60a6f8185983c956d7c26f16c5819a58b96a71 | 2026-01-05T05:05:27.542964Z | false |
php-enqueue/null | https://github.com/php-enqueue/null/blob/25d9df714fcf607682e58c67bb55791fb60289c1/NullTopic.php | NullTopic.php | <?php
namespace Enqueue\Null;
use Interop\Queue\Topic;
class NullTopic implements Topic
{
/**
* @var string
*/
private $name;
public function __construct(string $name)
{
$this->name = $name;
}
public function getTopicName(): string
{
return $this->name;
}
}... | php | MIT | 25d9df714fcf607682e58c67bb55791fb60289c1 | 2026-01-05T05:05:31.847668Z | false |
php-enqueue/null | https://github.com/php-enqueue/null/blob/25d9df714fcf607682e58c67bb55791fb60289c1/NullConsumer.php | NullConsumer.php | <?php
declare(strict_types=1);
namespace Enqueue\Null;
use Interop\Queue\Consumer;
use Interop\Queue\Destination;
use Interop\Queue\Message;
use Interop\Queue\Queue;
class NullConsumer implements Consumer
{
/**
* @var Destination
*/
private $queue;
public function __construct(Destination $que... | php | MIT | 25d9df714fcf607682e58c67bb55791fb60289c1 | 2026-01-05T05:05:31.847668Z | false |
php-enqueue/null | https://github.com/php-enqueue/null/blob/25d9df714fcf607682e58c67bb55791fb60289c1/NullSubscriptionConsumer.php | NullSubscriptionConsumer.php | <?php
declare(strict_types=1);
namespace Enqueue\Null;
use Interop\Queue\Consumer;
use Interop\Queue\SubscriptionConsumer;
class NullSubscriptionConsumer implements SubscriptionConsumer
{
public function consume(int $timeout = 0): void
{
}
public function subscribe(Consumer $consumer, callable $cal... | php | MIT | 25d9df714fcf607682e58c67bb55791fb60289c1 | 2026-01-05T05:05:31.847668Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.