Example #1
0
// @Test: isntSame() throws no exception when comparing arrays with scalars (2)
// fixtures
$actual = new LimeTesterScalar(false);
$expected = new LimeTesterArray(array());
// test
$actual->isntSame($expected);
// @Test: isntSame() throws no exception when comparing arrays with objects (1)
// fixtures
$actual = new LimeTesterArray(array());
$expected = new LimeTesterObject(new stdClass());
// test
$actual->isntSame($expected);
// @Test: isntSame() throws no exception when comparing arrays with objects (2)
// fixtures
$actual = new LimeTesterObject(new stdClass());
$expected = new LimeTesterArray(array());
// test
$actual->isntSame($expected);
// @Test: isntSame() throws no exception when comparing doubles with strings (1)
// fixtures
$actual = new LimeTesterDouble(1.0);
$expected = new LimeTesterString('1.0');
// test
$actual->isntSame($expected);
// @Test: isntSame() throws no exception when comparing doubles with strings (2)
// fixtures
$actual = new LimeTesterString('1.0');
$expected = new LimeTesterDouble(1.0);
// test
$actual->isntSame($expected);