public function testArrayAccessWithPresentKeysWillReturnTrue() { $arrayAccess = new ArrayObject(array('bar' => array('foo' => array('baz' => 'hello world!'), 'foooo' => array('boooo' => 321)))); $rule = new KeyNested('bar.foo.baz'); $this->assertTrue($rule->validate($arrayAccess)); }