public function shouldInterceptMethodCalls()
{
//given
$testMethodHandler = new TestMethodHandler();
$proxy = DynamicProxy::newInstance('Ouzo\\Utilities\\ProxiedClass', $testMethodHandler);
//when
$proxy->fun1(1, 2);
//then
$this->assertEquals(array(array('fun1', array(1, 2))), $testMethodHandler->calls);
}