Skip to content

Warning triggered in ActiveRecordFindTest::testFindReturnsArrayOfModels() #55

@ipundit

Description

@ipundit

D:\activerecord>composer test ActiveRecordFind FindReturnsArrayOfModels

Composer\Config::disableProcessTimeout
ActiveRecord\Scripts\TestCommand::runTest
Running: vendor/bin/phpunit --filter FindReturnsArrayOfModels test/ActiveRecordFindTest.php
(Cache Tests will be skipped, Memcache not found.)
PHPUnit 10.3.2 by Sebastian Bergmann and contributors.

Runtime: PHP 8.2.9
Configuration: D:\activerecord\phpunit.xml.dist

W 1 / 1 (100%)

Time: 00:01.432, Memory: 10.00 MB

1 test triggered 1 PHP warning:

  1. D:\activerecord\lib\Model.php:1794
    Undefined array key 0

Triggered by:

  • ActiveRecordFindTest::testFindReturnsArrayOfModels
    D:\activerecord\test\ActiveRecordFindTest.php:48

OK, but there were issues!
Tests: 1, Assertions: 1, Warnings: 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions