public function testSetObjectKeyImplementsFluentInterface() { $test = $this->helper->setObjectKey('foo'); $this->assertSame($this->helper, $test); }
/** * Set object key in this loop and any child loop * * {@inheritDoc} * * @param string|null $key * * @return self */ public function setObjectKey($key) { if (null === $key) { unset($this->objectKeyStack[$this->nestingLevel]); } else { $this->objectKeyStack[$this->nestingLevel] = (string) $key; } return parent::setObjectKey($key); }