Skip to content

Commit

Permalink
fix: removes duplicated destruct
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Feb 14, 2025
1 parent 67525c2 commit 637264e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/PendingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class PendingTest
*/
public function __destruct()
{
$this->build();
$this->compile();
}

/**
Expand Down Expand Up @@ -61,12 +61,4 @@ public function compile(): void

expect($result->ok())->toBeTrue();
}

/**
* Ends the chain and builds the test result.
*/
public function __destruct()
{
$this->compile();
}
}

0 comments on commit 637264e

Please sign in to comment.