Ejemplo n.º 1
0
 public function testMultiplePlaceholdersUseSameRegistry()
 {
     $this->assertTrue(Registry::isRegistered(PlaceholderRegistry::REGISTRY_KEY));
     $registry = Registry::get(PlaceholderRegistry::REGISTRY_KEY);
     $this->assertSame($registry, $this->placeholder->getRegistry());
     $placeholder = new Helper\Placeholder();
     $this->assertSame($registry, $placeholder->getRegistry());
     $this->assertSame($this->placeholder->getRegistry(), $placeholder->getRegistry());
 }
Ejemplo n.º 2
0
 public function testMultiplePlaceholdersUseSameRegistry()
 {
     $placeholder = new Helper\Placeholder();
     $this->assertSame($this->placeholder->getRegistry(), $placeholder->getRegistry());
 }