/** * @depends testInitialState * @return null */ public function testSetBase() { $this->assertNull($this->head->getBaseTag()); $this->assertSame($this->head, $this->head->setBase('my-ref')); $tag = $this->factory->createBaseTag('my-ref'); $this->assertEquals($tag, $this->head->getBaseTag()); $this->assertSame($this->head, $this->head->setBase(null, 'my-target')); $tag = $this->factory->createBaseTag(null, 'my-target'); $this->assertEquals($tag, $this->head->getBaseTag()); $this->assertSame($this->head, $this->head->setBase('ref', 'target')); $tag = $this->factory->createBaseTag('ref', 'target'); $this->assertEquals($tag, $this->head->getBaseTag()); }