assertSame($expected_cleaned_name, $actual_cleaned_name, $input_name); } public function test_deletefail() { $this->expectException(StructException::class); $schema = new Schema('foo'); $schema->delete(); } public function test_deleteok() { $this->loadSchemaJSON('schema1'); $schema = new Schema('schema1'); $this->assertEquals(1, $schema->getId()); $schema->delete(); $this->assertEquals(0, $schema->getId()); $schema = new Schema('schema1'); $this->assertEquals(0, $schema->getId()); } }