Skip to content

Различное поведение тестов #5

@vedro-compota

Description

@vedro-compota
  • Ветка object-factory

Проблема

Запуск всего набора тестов проходит проходит с ошибками:

cept run unit tests/unit/PHP/Object/ObjectFactory/CreateObjectByConstructTest.php

Получаем (фрагмент сообщения):

✔ CreateObjectByConstruct: By full assoc array in not direct order (0.00s)
✔ CreateObjectByConstruct: By not full assoc array (0.00s)
E CreateObjectByConstruct: By wrong params types (0.00s)
E CreateObjectByConstruct: By wrong params types not assoc array (0.00s)
E CreateObjectByConstruct: By wrong params types assoc array (0.00s)
E CreateObjectByConstruct: By wrong params count (0.00s)
--------------------------------------------------------------------------------


Time: 00:00.171, Memory: 10.00 MB

There were 4 errors:

---------
1) CreateObjectByConstruct: By wrong params types
 Test  tests/unit/PHP/Object/ObjectFactory/CreateObjectByConstructTest.php:testByWrongParamsTypes
                                                                                                         
  [TypeError] ObjectTestByConstruct2::__construct(): Argument #2 ($b) must be of type int, string given  
                                                                                                         

Но если запустить конкретный тест,напр. первый из "упавших" при запуске всего набора:

cept run unit tests/unit/PHP/Object/ObjectFactory/CreateObjectByConstructTest.php:testByWrongParamsTypes

-- то все проходит нормально.

Ещё:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions