mocking library for Haxe
WORK IN PROGRESS
haxelib git exmock https://github.com/DenkiYagi/exmock.git
final mock = ExMock.mock(YourInterface).setup({
sayHello: name -> "Hello " + name;
});
mock.object.sayHello("Taro");
mock.object.doSomething(); //thrown "not implemented"
mock.calls.sayHello; // [{name:"Taro"}]
interface YourInterface {
function sayHello(name:String):String;
function doSomething():Void;
}