// fixtures $actual = new LimeTesterArray(array('a' => 1, 'b' => 2)); $expected = new LimeTesterArray(array('b' => 2, 'a' => 1)); // test $actual->isntSame($expected); // @Test: contains() throws an exception if a value is not in the array // fixtures $actual = new LimeTesterArray(array(0 => 1)); $expected = LimeTester::create(0); // test $t->expect('LimeAssertionFailedException'); $actual->contains($expected); // @Test: contains() throws no exception if a value is in the array // fixtures $actual = new LimeTesterArray(array(0 => 1)); $expected = LimeTester::create(1); // test $actual->contains($expected); // @Test: containsNot() throws an exception if a value is in the array // fixtures $actual = new LimeTesterArray(array(0 => 1)); $expected = LimeTester::create(1); // test $t->expect('LimeAssertionFailedException'); $actual->containsNot($expected); // @Test: containsNot() throws no exception if a value is not in the array // fixtures $actual = new LimeTesterArray(array(0 => 1)); $expected = LimeTester::create(0); // test $actual->containsNot($expected);