コード例 #1
0
ファイル: tests_PHPFile.py プロジェクト: Sylvaner/extra-tools
 def test_check_if_method_exists_class_without(self):
     result = PHPFile.check_class(self.empty_class_file_path, 'TestPlugin')
     self.assertFalse(result)
コード例 #2
0
ファイル: tests_PHPFile.py プロジェクト: Sylvaner/extra-tools
 def test_check_if_method_exists_class_with_the_method(self):
     result = PHPFile.check_class(self.class_file_path, 'TestPlugin')
     self.assertTrue(result)
コード例 #3
0
ファイル: tests_PHPFile.py プロジェクト: Sylvaner/extra-tools
 def test_check_class_with_class(self):
     result = PHPFile.check_class(self.class_file_path, 'TestPlugin')
     self.assertTrue(result)
コード例 #4
0
ファイル: tests_PHPFile.py プロジェクト: Sylvaner/extra-tools
 def test_check_if_method_exists_with_empty_file(self):
     result = PHPFile.check_class(self.empty_file_path, 'TestClass')
     self.assertFalse(result)
コード例 #5
0
ファイル: tests_PHPFile.py プロジェクト: Sylvaner/extra-tools
 def test_check_class_without_file(self):
     result = PHPFile.check_class(self.no_file_path, 'TestPlugin')
     self.assertFalse(result)