public function testCanCompileByDirectoryAndClassName() { $this->compilerDefinition->addClassToProcess('OcraDiCompilerTest\\TestAsset\\ExampleEmptyClass'); $this->compilerDefinition->addDirectory(__DIR__); $this->compilerDefinition->compile(); $definition = $this->compilerDefinition->toArrayDefinition()->toArray(); $this->assertCount(2, $definition); $this->assertArrayHasKey('OcraDiCompilerTest\\TestAsset\\ExampleEmptyClass', $definition); $this->assertArrayHasKey(__CLASS__, $definition); }