compiler = new ClassDefinitionCompiler(); } public function test_compile_wrong_type_fails_assertion(): void { $this->expectException(AssertionError::class); $this->compiler->compile(new stdClass()); } }