public function testPathPushPop() { $this->dp->pushPath('a'); self::assertTrue(is_array($this->dp->getMandatory('b', ArrayDataProvider::ARRAY_TYPE))); self::assertEquals(55, $this->dp->getMandatory('b.c', ArrayDataProvider::INT_TYPE)); $this->dp->pushPath('b'); self::assertEquals(55, $this->dp->getMandatory('c', ArrayDataProvider::INT_TYPE)); self::assertEquals(33, $this->dp->getMandatory('d.g', ArrayDataProvider::INT_TYPE)); $this->dp->popPath(); self::assertEquals(66, $this->dp->getMandatory("d.e", ArrayDataProvider::INT_TYPE)); $this->dp->pushPath('d'); self::assertEquals(77, $this->dp->getMandatory("e", ArrayDataProvider::INT_TYPE)); $this->dp->setCurrentPath(''); self::assertEquals(66, $this->dp->getMandatory('a.d.e', ArrayDataProvider::INT_TYPE)); }