public function testExtraneousCallbackFunction()
 {
     $instance = new DataTypeRegistry();
     $arg = 'foo';
     $instance->registerExtraneousFunction('foo', function ($arg) {
         return 'bar' . $arg;
     });
     $this->assertInternalType('array', $instance->getExtraneousFunctions());
 }
 public function testExtraneousCallbackFunction()
 {
     $extraneousLanguage = $this->getMockBuilder('\\SMW\\ExtraneousLanguage\\ExtraneousLanguage')->disableOriginalConstructor()->getMock();
     $extraneousLanguage->expects($this->once())->method('getDatatypeLabels')->will($this->returnValue(array()));
     $extraneousLanguage->expects($this->once())->method('getDatatypeAliases')->will($this->returnValue(array()));
     $extraneousLanguage->expects($this->once())->method('getCanonicalDatatypeLabels')->will($this->returnValue(array()));
     $instance = new DataTypeRegistry($extraneousLanguage);
     $arg = 'foo';
     $instance->registerExtraneousFunction('foo', function ($arg) {
         return 'bar' . $arg;
     });
     $this->assertInternalType('array', $instance->getExtraneousFunctions());
 }