public function testDataTypeDefinitions_onlySomeDataTypesEnabled() { $definitions = $this->getDefinitions(); $defs = new DataTypeDefinitions($definitions, array('bar')); $this->assertSame(array('foo'), $defs->getTypeIds(), 'data type ids'); $this->assertSame(array('VT:FOO' => 'DataTypeDefinitionsTest::getFooValueFormatter'), $defs->getFormatterFactoryCallbacks(DataTypeDefinitions::PREFIXED_MODE), 'formatter factory callbacks, prefixed mode'); }