Skip to content

How can i past a double to a class contructor? #182

Description

@videni

the following doesnt' work

         $ck = test::double(CacheKey::class, [ 'track' => null,])->make();
   
        $cityConfigProvider = new CityConfigProvider($cityConfigBuilder, $ck);  // failed  for $ck is not an instance of CacheKey
        $ck->verifyInvoked('track'); 

        $value = $cityConfigProvider->get($cityId, 'wechat_app_Id');

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