Codeception / Codeception/AspectMock
verifyInvokedMultipleTimes and ArgumentFormatter formats an object in an array with __set_state
- Ngôn ngữ chính
- PHP
- Star
- 784
- Fork
- 132
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi,
Im having an issue where im checking if a function is being call with the correct params, but one of my params is an array with objects in it. the what the ArgumentFormatter handles arrays is but calling `var_export` but this changes the objects/classes into the `__set_state` resulting the verify to fail
My current version of aspect mock:
```
name : codeception/aspect-mock
descrip. : Experimental Mocking Framework powered by Aspects
keywords :
versions : * 3.0.2
type : library
license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
source : [git] https://github.com/Codeception/AspectMock.git 130afd10a3d8131d267f393ee1ec322e3e583d67
dist : [zip] https://api.github.com/repos/Codeception/AspectMock/zipball/130afd10a3d8131d267f393ee1ec322e3e583d67 130afd10a3d8131d267f393ee1ec322e3e583d67
path : /var/www/html/billing/vendor/codeception/aspect-mock
names : codeception/aspect-mock
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start by reading ArgumentFormatter and the verifyInvokedMultipleTimes path, then reproduce the comparison with an array containing objects. Confirm that var_export produces __set_state and define completion as verification no longer failing solely because objects in array arguments are formatted that way.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- php
- Lĩnh vực
- testing
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100