Definition at line 36 of file BasicTaskFactoryTest.php.
◆ testBasicFactory()
BackgroundTasks\Implementation\Tasks\BasicTaskFactoryTest::testBasicFactory |
( |
| ) |
|
Definition at line 38 of file BasicTaskFactoryTest.php.
References Vendor\Package\$a, Vendor\Package\$b, and $dic.
40 $dic =
new Container();
41 $injector =
new Injector(
$dic,
new BaseDependencyMap());
42 $taskFactory =
new BasicTaskFactory($injector);
43 $plusJob = $taskFactory->createTask(PlusJob::class, [1, 2]);
45 $plusJobInput = $plusJob->getInput();
46 $one =
new IntegerValue();
48 $this->assertTrue($plusJobInput[0]->equals($one));
50 $a =
new IntegerValue();
52 $b =
new IntegerValue();
54 $plusJob = $taskFactory->createTask(PlusJob::class, [
$a,
$b]);
56 $plusJobInput = $plusJob->getInput();
57 $this->assertTrue($plusJobInput[0]->equals($one));
Interface Observer Contains several chained tasks and infos about them.
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
The documentation for this class was generated from the following file: