public function testAddDefinitionsWhenFrozen() { $this->setExpectedException('BadMethodCallException', 'Adding definition to a frozen container is not allowed'); $this->_sut->compile(); $this->_sut->addDefinitions(array(new tubepress_internal_ioc_Definition('clazz'))); }