public function shouldCreateProxyForInterface()
{
//when
$testMethodHandler = new TestMethodHandler();
$proxy = DynamicProxy::newInstance('Ouzo\\Utilities\\TestInterface', $testMethodHandler);
$param = new TestClass();
//when
$proxy->fun1($param);
//then
$this->assertEquals(array(array('fun1', array($param))), $testMethodHandler->calls);
}