/** * @covers Opf_Class::__construct */ public function testConstructorBasic() { $this->_optMock->expects($this->atLeastOnce())->method('register'); Opl_Registry::register('opt', $this->_optMock); $opf = new Opf_Class(); $this->assertTrue(Opl_Registry::exists('opf')); }