🚨 breakdown tests into separate files

This commit is contained in:
William Hall
2021-02-03 09:31:07 +00:00
parent 5957248509
commit 178f4447a7
14 changed files with 421 additions and 282 deletions
+23
View File
@@ -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);
}
}