___________________ PHPCodeSnifferBearTest.test_valid_files ___________________
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_valid_files>
def test_valid_files(self):
self.assertIsInstance(valid_files, (list, tuple))
for file in valid_files:
self.check_validity(self.uut,
file.splitlines(keepends=True),
filename,
valid=True,
force_linebreaks=force_linebreaks,
create_tempfile=create_tempfile,
> tempfile_kwargs=tempfile_kwargs)
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:401:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:174: in check_validity
aspects=aspects,
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:287: in check_results
self.assertComparableObjectsEqual(bear_output, results)
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:138: in assertComparableObjectsEqual
self.assertEqual(observed_result, expected_result)
E AssertionError: Lists differ: [<Result object(id=0xd82c4e2175084ce584f02[508 chars]fd0>] != []
E
E First list contains 1 additional elements.
E First extra element 0:
E <Result object(id=0xd82c4e2175084ce584f02be686784cbf, origin='PHPCodeSnifferBear', affected_code=(<SourceRange object(start=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmp21qj_zwo.php', line=1, column=1) at 0x8638cb0>, end=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmp21qj_zwo.php', line=1, column=1) at 0x8619ef0>) at 0x8638f70>,), severity=NORMAL, confidence=100, message='End of line character is invalid; expected "\\n" but found "\\r\\n"', aspect=NoneType, applied_actions={}) at 0x8638fd0>
E
E - [<Result object(id=0xd82c4e2175084ce584f02be686784cbf, origin='PHPCodeSnifferBear', affected_code=(<SourceRange object(start=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmp21qj_zwo.php', line=1, column=1) at 0x8638cb0>, end=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmp21qj_zwo.php', line=1, column=1) at 0x8619ef0>) at 0x8638f70>,), severity=NORMAL, confidence=100, message='End of line character is invalid; expected "\\n" but found "\\r\\n"', aspect=NoneType, applied_actions={}) at 0x8638fd0>]
E + []
---------------------------- Captured stdout call -----------------------------
PHPCodeSnifferBear: Exit code 2
tests\php\PHPCodeSnifferBearTest.py .F
______________ PHPCodeSnifferBearLineLengthTest.test_valid_files ______________
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_valid_files>
def test_valid_files(self):
self.assertIsInstance(valid_files, (list, tuple))
for file in valid_files:
self.check_validity(self.uut,
file.splitlines(keepends=True),
filename,
valid=True,
force_linebreaks=force_linebreaks,
create_tempfile=create_tempfile,
> tempfile_kwargs=tempfile_kwargs)
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:401:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:174: in check_validity
aspects=aspects,
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:287: in check_results
self.assertComparableObjectsEqual(bear_output, results)
.tox\py36-noreqs-pip-npm-gem-go-perl-php-java8-win-check-noskip\lib\site-packages\coalib\testing\LocalBearTestHelper.py:138: in assertComparableObjectsEqual
self.assertEqual(observed_result, expected_result)
E AssertionError: Lists differ: [<Result object(id=0xc6d5c36de6464abf9887f[508 chars]db0>] != []
E
E First list contains 1 additional elements.
E First extra element 0:
E <Result object(id=0xc6d5c36de6464abf9887fadc17081c51, origin='PHPCodeSnifferBear', affected_code=(<SourceRange object(start=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmpuw13bgin.php', line=1, column=1) at 0x861ff10>, end=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmpuw13bgin.php', line=1, column=1) at 0x861f7b0>) at 0x861fc30>,), severity=NORMAL, confidence=100, message='End of line character is invalid; expected "\\n" but found "\\r\\n"', aspect=NoneType, applied_actions={}) at 0x8606db0>
E
E - [<Result object(id=0xc6d5c36de6464abf9887fadc17081c51, origin='PHPCodeSnifferBear', affected_code=(<SourceRange object(start=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmpuw13bgin.php', line=1, column=1) at 0x861ff10>, end=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmpuw13bgin.php', line=1, column=1) at 0x861f7b0>) at 0x861fc30>,), severity=NORMAL, confidence=100, message='End of line character is invalid; expected "\\n" but found "\\r\\n"', aspect=NoneType, applied_actions={}) at 0x8606db0>]
E + []
https://ci.appveyor.com/project/jayvdb/coala-bears/builds/25153020/job/xaquawe2t34l59a3