File tree Expand file tree Collapse file tree 9 files changed +21
-16
lines changed
tests/Process/ProcessArray Expand file tree Collapse file tree 9 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 77 Process \Process ,
88 Process \ProcessArray
99};
10- use steevanb \PhpTypedArray \ScalarArray \StringArray ;
10+ use Steevanb \PhpTypedArray \ScalarArray \StringArray ;
1111use Symfony \Component \Console \Input \ArgvInput ;
1212
1313require $ _SERVER ['COMPOSER_HOME ' ] . '/vendor/autoload.php ' ;
Original file line number Diff line number Diff line change 77 Process \Process ,
88 Process \ProcessArray
99};
10- use steevanb \PhpTypedArray \ScalarArray \StringArray ;
10+ use Steevanb \PhpTypedArray \ScalarArray \StringArray ;
1111use Symfony \Component \Console \Input \ArgvInput ;
1212
1313require dirname (__DIR__ , 2 ) . '/vendor/autoload.php ' ;
Original file line number Diff line number Diff line change 1212 "require" : {
1313 "php" : " ^8.1" ,
1414 "ext-pcntl" : " *" ,
15- "steevanb/php-typed-array" : " ^3.2 " ,
15+ "steevanb/php-typed-array" : " ^4.0 " ,
1616 "symfony/console" : " ^6.1" ,
1717 "symfony/process" : " ^6.1"
1818 },
2828 },
2929 "autoload-dev" : {
3030 "psr-4" : {
31- "steevanb \\ PhpTypedArray\\ Bridge\\ Phpstan\\ " : " vendor/steevanb/php-typed-array/bridge/Phpstan/src" ,
31+ "Steevanb \\ PhpTypedArray\\ Bridge\\ Phpstan\\ " : " vendor/steevanb/php-typed-array/bridge/Phpstan/src" ,
3232 "Steevanb\\ ParallelProcess\\ Tests\\ " : " tests/"
3333 }
3434 },
Original file line number Diff line number Diff line change 3737 php8.1-zip \
3838 # For coverage
3939 php8.1-xdebug \
40+ && update-alternatives --set php /usr/bin/php8.1 \
41+
4042 # Install CI tools
4143 && cd ${COMPOSER_HOME} \
42- && php8.1 /usr/local/bin/ composer update \
44+ && composer update \
4345 && ln -s ${COMPOSER_HOME}/vendor/bin/composer-require-checker /usr/local/bin/composer-require-checker \
4446 && ln -s ${COMPOSER_HOME}/vendor/bin/phpcf /usr/local/bin/phpcf \
4547 && ln -s ${COMPOSER_HOME}/vendor/bin/phpcs /usr/local/bin/phpcs \
5254 && chmod 777 ${COMPOSER_HOME}/vendor/infection/extension-installer/src/GeneratedExtensionsConfig.php \
5355
5456 # Install Symfony components
55- && COMPOSER_HOME=${COMPOSER_HOME_SYMFONY_6_1} \
56- php8.1 /usr/local/bin/composer global require symfony/process:6.1.* symfony/console:6.1.* \
57- && COMPOSER_HOME=${COMPOSER_HOME_SYMFONY_6_2} \
58- php8.1 /usr/local/bin/composer global require symfony/process:6.2.* symfony/console:6.2.* \
57+ && COMPOSER_HOME=${COMPOSER_HOME_SYMFONY_6_1} composer global require symfony/process:6.1.* symfony/console:6.1.* \
58+ && COMPOSER_HOME=${COMPOSER_HOME_SYMFONY_6_2} composer global require symfony/process:6.2.* symfony/console:6.2.* \
5959
6060 # Purge
6161 && apt-get purge -y software-properties-common \
Original file line number Diff line number Diff line change 1414 Color ,
1515 Output \OutputInterface
1616};
17- use steevanb \PhpTypedArray \ScalarArray \StringArray ;
17+ use Steevanb \PhpTypedArray \ScalarArray \StringArray ;
1818
1919class DefaultTheme implements ThemeInterface
2020{
Original file line number Diff line number Diff line change 44
55namespace Steevanb \ParallelProcess \Console \Output ;
66
7- use steevanb \PhpTypedArray \ScalarArray \StringArray ;
7+ use Steevanb \PhpTypedArray \ScalarArray \StringArray ;
88use Symfony \Component \Console \{
99 Formatter \OutputFormatterInterface ,
1010 Output \ConsoleOutput ,
Original file line number Diff line number Diff line change 44
55namespace Steevanb \ParallelProcess \Process ;
66
7- use steevanb \PhpTypedArray \ObjectArray \ObjectArray ;
7+ use Steevanb \PhpTypedArray \ObjectArray \ObjectArray ;
88
99class ProcessArray extends ObjectArray
1010{
Original file line number Diff line number Diff line change 55namespace Steevanb \ParallelProcess \Process ;
66
77use Steevanb \ParallelProcess \Console \Application \ParallelProcessesApplication ;
8- use steevanb \PhpTypedArray \ScalarArray \StringArray ;
8+ use Steevanb \PhpTypedArray \ScalarArray \StringArray ;
99
1010class ProcessFactory
1111{
Original file line number Diff line number Diff line change 99 Process \Process ,
1010 Process \ProcessArray
1111};
12+ use Steevanb \PhpTypedArray \{
13+ NullValueModeEnum ,
14+ ObjectComparisonModeEnum ,
15+ ValueAlreadyExistsModeEnum
16+ };
1217
1318/** @covers \Steevanb\ParallelProcess\Process\ProcessArray::__construct */
1419final class ConstructTest extends TestCase
@@ -19,8 +24,8 @@ public function testDefaultValues(): void
1924
2025 static ::assertCount (0 , $ processes );
2126 static ::assertSame (Process::class, $ processes ->getClassName ());
22- static ::assertSame (ProcessArray:: COMPARISON_STRING , $ processes ->getComparisonMode ());
23- static ::assertSame (ProcessArray:: VALUE_ALREADY_EXIST_ADD , $ processes ->getValueAlreadyExistMode ());
24- static ::assertSame (ProcessArray:: NULL_VALUE_ALLOW , $ processes ->getNullValueMode ());
27+ static ::assertSame (ObjectComparisonModeEnum:: STRING , $ processes ->getComparisonMode ());
28+ static ::assertSame (ValueAlreadyExistsModeEnum:: ADD , $ processes ->getValueAlreadyExistMode ());
29+ static ::assertSame (NullValueModeEnum:: ALLOW , $ processes ->getNullValueMode ());
2530 }
2631}
You can’t perform that action at this time.
0 commit comments