public function testDuplicateValues()
 {
     $item1 = 'item 1';
     $stack = new Stack();
     $stack->push($item1)->push($item1)->push($item1);
     $this->assertEquals(3, $stack->size());
 }
Example #2
0
 public function preRun(KernelHandleEvent $e)
 {
     $target = $e->getTarget();
     $this->domainStack->push($target->getCanonicalName());
     $this->domain = $this->domainStack->peek();
 }