public function testRemoveDefinition() { $tubePressDefinition = $this->mock('tubepress_internal_ioc_Definition'); $symfonyDefinition = $this->mock('Symfony\\Component\\DependencyInjection\\Definition'); $tubePressDefinition->shouldReceive('getUnderlyingSymfonyDefinition')->once()->andReturn($symfonyDefinition); $this->assertFalse($this->_sut->has('x')); $this->_sut->setDefinition('x', $tubePressDefinition); $this->assertTrue($this->_sut->has('x')); $this->_sut->removeDefinition('x'); $this->assertFalse($this->_sut->has('x')); }