Exemplo n.º 1
0
// test
$t->expect('LimeAssertionFailedException');
$actual->same($expected);
// @Test: same() throws an exception if the order is different
// fixtures
$actual = new LimeTesterArray(array('a' => 1, 'b' => 2));
$expected = new LimeTesterArray(array('b' => 2, 'a' => 1));
// test
$t->expect('LimeAssertionFailedException');
$actual->same($expected);
// @Test: same() throws no exception if values match
// fixtures
$actual = new LimeTesterArray(array(0 => 1));
$expected = new LimeTesterArray(array(0 => 1));
// test
$actual->same($expected);
// @Test: isntSame() throws an exception if the arrays are equal
// fixtures
$actual = new LimeTesterArray(array(0 => 1));
$expected = new LimeTesterArray(array(0 => 1));
// test
$t->expect('LimeAssertionFailedException');
$actual->isntSame($expected);
// @Test: isntSame() throws no exception if the types differ
// fixtures
$actual = new LimeTesterArray(array(1));
$expected = new LimeTesterArray(array('1'));
// test
$actual->isntSame($expected);
// @Test: isntSame() throws no exception if the order differs
// fixtures