Skip to content

Commit

Permalink
Removed dead test in PhpLintTaskTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Sep 28, 2024
1 parent af9337e commit 3caac3f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/Phing/Test/Task/System/PhpLintTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,6 @@ public function testSyntaxError(): void
$this->assertInLogs('syntax error');
}

/**
* Regression test for ticket http://www.phing.info/trac/ticket/590.
*
* @requires PHP < 7.0
*/
public function testDeprecated(): void
{
file_put_contents(
PHING_TEST_BASE . '/tmp/phplint_file.php',
'<?php class TestClass {}; $t = & new TestClass();'
);

$this->executeTarget(__FUNCTION__);
$this->assertInLogs('Assigning the return value of new by reference is deprecated in');
}

public function testHaltOnFailure(): void
{
file_put_contents(PHING_TEST_BASE . '/tmp/phplint_file.php', "<?php echo 'Hello world; ?>");
Expand Down

0 comments on commit 3caac3f

Please sign in to comment.