Skip to content

Commit a219343

Browse files
committed
[consumption] fix onStart extension tests.
1 parent a44efd4 commit a219343

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ClassExtensionTrait.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,14 @@ public function assertClassFinal($actual)
3333
sprintf('Failed assert that class %s is final.', $actual)
3434
);
3535
}
36+
37+
public function assertClassNotFinal($actual)
38+
{
39+
$rc = new \ReflectionClass($actual);
40+
41+
$this->assertFalse(
42+
$rc->isFinal(),
43+
sprintf('Failed assert that class %s is final.', $actual)
44+
);
45+
}
3646
}

0 commit comments

Comments
 (0)