maxfilatov / phpuaca

PHPUnit Autocomplete Assistant (PhpStorm plugin)
50 stars 24 forks source link

Prophecy completion for prophecies from setup #20

Closed susannemoog closed 8 years ago

susannemoog commented 8 years ago

Hey,

in my setUp() I have:

$this->blobRestProxy = $this->prophesize(BlobRestProxy::class);

and in my test:

$this->blobRestProxy->createBlockBlob('mycontainer', 'foo/bar', chr(26), Arg::any())->shouldHaveBeenCalled();

I can't get autocomplete on shouldHaveBeenCalled to work, except when explicitly setting up the prophecy in my test (which kind of defeats the purpose of my class var / setup). Am I missing some magic annotation I have to use?

Thanks,

Susi

deeky666 commented 8 years ago

Same here.