public function testGetCurrentOrEmptyStack() { $stackItem = $this->stacker->start('viewpath', ['arg1', 'arg2']); $currentItem = $this->stacker->current(); $this->assertEquals($stackItem, $currentItem); $this->assertFalse($this->stacker->isEmpty()); $this->stacker->end(); $this->assertFalse($this->stacker->current()); $this->assertTrue($this->stacker->isEmpty()); }