// test $t->expect('LimeAssertionFailedException'); $actual->is($expected); // @Test: is() throws an exception when comparing objects with scalars (2) // fixtures $actual = new LimeTesterScalar(false); $expected = new LimeTesterObject(new stdClass()); // test $t->expect('LimeAssertionFailedException'); $actual->is($expected); // @Test: is() throws no exception when comparing strings with objects featuring __toString() (1) // fixtures $actual = new LimeTesterString('foobar'); $expected = new LimeTesterObject(new TestClassWithToString()); // test $actual->is($expected); // @Test: is() throws no exception when comparing strings with objects featuring __toString() (2) // fixtures $actual = new LimeTesterObject(new TestClassWithToString()); $expected = new LimeTesterString('foobar'); // test $actual->is($expected); // @Test: is() throws an exception when comparing arrays with scalars (1) // fixtures $actual = new LimeTesterArray(array()); $expected = new LimeTesterScalar(false); // test $t->expect('LimeAssertionFailedException'); $actual->is($expected); // @Test: is() throws an exception when comparing arrays with scalars (2) // fixtures