From 0890e83105e6000c1ffc2f564ee921bdf6b610e0 Mon Sep 17 00:00:00 2001 From: Francis Bourre Date: Mon, 2 Oct 2017 11:28:08 +0200 Subject: [PATCH] Fix for php target. Use Reflect.compareMethods. --- src/hex/unittest/assertion/Assert.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hex/unittest/assertion/Assert.hx b/src/hex/unittest/assertion/Assert.hx index 65166ba..45a6fce 100644 --- a/src/hex/unittest/assertion/Assert.hx +++ b/src/hex/unittest/assertion/Assert.hx @@ -153,7 +153,7 @@ class Assert { Assert._LOG_ASSERT( userMessage ); - #if neko + #if (neko || php) if ( Reflect.isFunction( expected ) ) { if ( !Reflect.compareMethods( expected, value ) ) @@ -176,7 +176,7 @@ class Assert { Assert._LOG_ASSERT( userMessage ); - #if neko + #if (neko || php) if ( Reflect.isFunction( expected ) ) { if ( Reflect.compareMethods( expected, value ) )