public function testSetPrototype() { $prototype = $this->getDefinitionMock(); $definition = new Definition(); $definition->setPrototype($prototype); $this->assertSame($prototype, $definition->getPrototype()); }
/** * @param string|Definition $type * @param array $options * @return Builder */ public function prototype($type = null, array $options = array()) { $definition = $this->resolve($type, $options); $this->definition->setPrototype($definition); return new Builder($this->resolver, $definition, $this); }