Skip to content

Commit c6c8083

Browse files
Pavel AlexeevPavel Alexeev
Pavel Alexeev
authored and
Pavel Alexeev
committed
php-kafka#33 Remove accidentally committed AvroClassPropertyParser.php (that should act as example of extending and override)
1 parent 1cc81b7 commit c6c8083

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

src/Parser/AvroClassPropertyParser.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

tests/Integration/Registry/ClassRegistryTest.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,6 @@ public function testLoad()
5656
}
5757
}
5858

59-
public function testLoadMinimal() {
60-
$classDir = __DIR__ . '/../../../example/classes_minimal';
61-
62-
// $propertyParser = new ClassPropertyParser(new DocCommentParser());
63-
$propertyParser = new AvroClassPropertyParser(new DocCommentParser());
64-
$parser = new ClassParser((new ParserFactory())->create(ParserFactory::PREFER_PHP7), $propertyParser);
65-
$converter = new PhpClassConverter($parser);
66-
$registry = (new ClassRegistry($converter))->addClassDirectory($classDir)->load();
67-
68-
self::assertInstanceOf(ClassRegistryInterface::class, $registry);
69-
70-
$classes = $registry->getClasses();
71-
72-
self::assertCount(1, $classes);
73-
74-
foreach ($classes as $class) {
75-
self::assertInstanceOf(PhpClassInterface::class, $class);
76-
}
77-
78-
$generator = new SchemaGenerator('');
79-
$generator->setClassRegistry($registry);
80-
$schemas = $generator->generate();
81-
self::assertCount(1, $schemas);
82-
}
83-
8459
public function testRegisterSchemaFileThatDoesntExist()
8560
{
8661
$fileInfo = new SplFileInfo('somenonexistingfile');

0 commit comments

Comments
 (0)