Skip to content

Commit 4c78ea2

Browse files
committed
add PHPUnit tearDown() method to clean up SAPNWRFC trace files
1 parent fab1618 commit 4c78ea2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/SapRfcIntegrationTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,18 @@ class SapRfcIntegrationTest extends AbstractSapRfcTestCase
492492
]
493493
];
494494

495+
/**
496+
* Clean up after tests.
497+
*/
498+
public function tearDown()
499+
{
500+
parent::tearDown();
501+
$devRfcTrc = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'dev_rfc.trc';
502+
if (file_exists($devRfcTrc)) {
503+
unlink($devRfcTrc);
504+
}
505+
}
506+
495507
/**
496508
* @inheritDoc
497509
*/

0 commit comments

Comments
 (0)