Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

verifyInvokedMultipleTimes and ArgumentFormatter formats an object in an array with __set_state

オープン
#174 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
testing

調査の方向性

まず ArgumentFormatter と verifyInvokedMultipleTimes パスを読み、次にオブジェクトを含む配列で比較を再現します。var_export が __set_state を生成することを確認し、配列引数内のオブジェクトがそのようにフォーマットされることだけを理由に検証が失敗しなくなった状態を完了と定義します。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
PHP
スター
784
フォーク
132
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Codeception/AspectMock のほかの issue

Codeception/AspectMock の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。