public function testRegisterClass() { $className = get_class($this->getMockBuilder('NewClass')->getMock()); $this->assertInstanceOf($className, $this->IRegistry->register($className)); $this->assertInstanceOf($className, $this->IRegistry->register($className)); }