Skip to content

[FEATURE] Add Tests #12

[FEATURE] Add Tests

[FEATURE] Add Tests #12

Triggered via pull request July 31, 2024 14:21
@mteumteu
synchronize #5
task/add-tests
Status Failure
Total duration 3m 7s
Artifacts

cgl.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
cgl: Tests/Unit/Log/Writer/StandardStreamWriterTest.php#L47
Method mteu\StreamWriter\Tests\Unit\Log\Writer\StandardStreamWriterTest::createWriter() has parameter $options with null as default value.
cgl: Tests/Unit/Log/Writer/StandardStreamWriterTest.php#L53
Parameter #1 $options of class mteu\StreamWriter\Log\Writer\StandardStreamWriter constructor expects array{outputStream: mteu\StreamWriter\Log\Config\StandardStream}, array{outputStream: mixed} given.
cgl: Tests/Unit/Log/Writer/StandardStreamWriterTest.php#L59
Method mteu\StreamWriter\Tests\Unit\Log\Writer\StandardStreamWriterTest::captureOutputBufferForLogWrite() is unused.
cgl: Tests/Unit/Log/Writer/StandardStreamWriterTest.php#L73
Call to static method PHPUnit\Framework\Assert::assertInstanceOf() with 'mteu\\StreamWriter\\Log\\Writer\\StandardStreamWriter' and mteu\StreamWriter\Log\Writer\StandardStreamWriter will always evaluate to true.
cgl: Tests/Unit/Log/Writer/StandardStreamWriterTest.php#L80
Call to static method PHPUnit\Framework\Assert::assertInstanceOf() with 'mteu\\StreamWriter\\Log\\Writer\\StandardStreamWriter' and mteu\StreamWriter\Log\Writer\StandardStreamWriter will always evaluate to true.
cgl: Tests/Unit/Log/Writer/StandardStreamWriterTest.php#L91
Parameter #1 $options of method mteu\StreamWriter\Tests\Unit\Log\Writer\StandardStreamWriterTest::createWriter() expects array{outputStream: mixed}|null, array{} given.
cgl
Ignored error pattern #^Parameter \#1 \$options of method Mteu\\StreamWriter\\Tests\\Unit\\Log\\Writer\\StandardStreamWriterTest\:\:createWriter\(\) expects array\{outputStream\: mixed\}\|null, array\{\} given\.$# was not matched in reported errors.
cgl
Ignored error pattern #^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with 'Mteu\\\\StreamWriter\\\\Log\\\\Writer\\\\StandardStreamWriter' and Mteu\\StreamWriter\\Log\\Writer\\StandardStreamWriter will always evaluate to true\.$# was not matched in reported errors.
cgl
Ignored error pattern #^Method Mteu\\StreamWriter\\Tests\\Unit\\Log\\Writer\\StandardStreamWriterTest\:\:captureOutputBufferForLogWrite\(\) is unused\.$# was not matched in reported errors.
cgl
Ignored error pattern #^Method Mteu\\StreamWriter\\Tests\\Unit\\Log\\Writer\\StandardStreamWriterTest\:\:createWriter\(\) has parameter \$options with null as default value\.$# was not matched in reported errors.
cgl
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/