Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Fixed missing function problem with mock proxy #279 #280

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/EcomDev/PHPUnit/Mock/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,13 @@ public function __call($name, $arguments)
);
}


}

public function __phpunit_hasMatchers()
{
throw new RuntimeException(
'Mock object proxy cannot be used for retrieving invocation mockers, '
. 'use getMockInstance method for real mock object'
);
}

}