Top "Stubs" questions

A replacement implementation for objects, methods, or functions in order to remove external dependencies.

Mocks vs Stubs in PHPUnit

I know stubs verify state and the mocks verify behavior. How can I make a mock in PHPUnit to verify …

unit-testing testing mocking phpunit stubs
Stubbing a prototype method with sinon

Let's say I have the following methods: Controller.prototype.refresh = function () { console.log('refreshing'); } Controller.prototype.delete = function (object) { var …

javascript prototype mocha.js sinon stubs
When to use Meteor.methods and utilizing stubs

Using Meteor, I'm attempting to understand when to use server-side Meteor.methods() while still retaining instant UI updates. From Andrew …

javascript node.js meteor stubs
Understanding stubs, fakes and mocks.

I have just started to read Professional Test Driven Development with C#: Developing Real World Applications with TDD I have …

unit-testing mocking tdd stubs