ddnrnboobaql / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

Allow IsInstanceOf matcher to accept an object instance and use get_class() #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to be able to use

    assertThat($obj1, any($obj2));

and have it work like

    assertThat($obj1, any(get_class($obj2)));

Original issue reported on code.google.com by dharkn...@gmail.com on 17 May 2011 at 6:57