public function testContains() { $item1 = 'item 1'; $item2 = 'item 2'; $item3 = 'item 3'; $items = [$item1, $item2]; $stack = new Stack($items); $this->assertTrue($stack->contains($item2)); $this->assertFalse($stack->contains($item3)); }
public function postRun(KernelHandleEvent $e) { $this->domainStack->pop(); $this->domain = $this->domainStack->peek(); }