def test_check_if_method_exists_class_without(self): result = PHPFile.check_class(self.empty_class_file_path, 'TestPlugin') self.assertFalse(result)
def test_check_if_method_exists_class_with_the_method(self): result = PHPFile.check_class(self.class_file_path, 'TestPlugin') self.assertTrue(result)
def test_check_class_with_class(self): result = PHPFile.check_class(self.class_file_path, 'TestPlugin') self.assertTrue(result)
def test_check_if_method_exists_with_empty_file(self): result = PHPFile.check_class(self.empty_file_path, 'TestClass') self.assertFalse(result)
def test_check_class_without_file(self): result = PHPFile.check_class(self.no_file_path, 'TestPlugin') self.assertFalse(result)