/** * Tests DbDataSourceDescriptor->listGenerator() */ public function testListGenerator() { $this->assertInstanceOf('\\Generator', $this->DbDataSourceDescriptor->listGenerator(), 'returning generator instance'); foreach ($this->DbDataSourceDescriptor->listGenerator() as $key => $value) { $this->assertInternalType('string', $key, 'dataset name'); $this->assertInstanceOf('\\VisioCrudModeler\\Descriptor\\Db\\DbDataSetDescriptor', $value, ' implementation of db dataset descriptor'); $this->assertInstanceOf('\\VisioCrudModeler\\Descriptor\\DataSetDescriptorInterface', $value, ' implementation of dataset descriptor interface'); } }