mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-10-04 19:07:19 +00:00
🚨 breakdown tests into separate files
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
trait MightNotMakeAssertions
|
||||
{
|
||||
/**
|
||||
* This is a shim to support PHPUnit for php 5.6 and 7.0.
|
||||
*
|
||||
* It has to be named something that doesn't collide with existing
|
||||
* TestCase methods as we can't support PHP return types right now
|
||||
*/
|
||||
public function noAssertionsMade()
|
||||
{
|
||||
foreach (class_parents($this) as $parent) {
|
||||
if (method_exists($parent, 'expectNotToPerformAssertions')) {
|
||||
return parent::expectNotToPerformAssertions();
|
||||
}
|
||||
}
|
||||
|
||||
return $this->assertTrue(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user