editor = Editor::new(); } public function testSanity(): void { $this->assertEquals(0, $this->editor->numRows); $this->assertNull($this->editor->syntax); } public function test__debugInfo(): void { $state = json_encode($this->editor->__debugInfo()); $this->assertMatchesJsonSnapshot($state); } public function testOpen(): void { $this->editor->open('test.php'); $state = json_encode($this->editor); $this->assertMatchesJsonSnapshot($state); } }