namespace Drupal\Tests\Component\Utility;
use Drupal\Component\Utility\Bytes;
-use Drupal\Tests\UnitTestCase;
+use PHPUnit\Framework\TestCase;
/**
* Tests bytes size parsing helper methods.
*
* @coversDefaultClass \Drupal\Component\Utility\Bytes
*/
-class BytesTest extends UnitTestCase {
+class BytesTest extends TestCase {
/**
* Tests \Drupal\Component\Utility\Bytes::toInt().
['1 ZB' , pow(Bytes::KILOBYTE, 7)],
['1 YB' , pow(Bytes::KILOBYTE, 8)],
['23476892 bytes', 23476892],
- ['76MRandomStringThatShouldBeIgnoredByParseSize.', 79691776], // 76 MB
- ['76.24 Giggabyte', 81862076662], // 76.24 GB (with typo)
+ // 76 MB.
+ ['76MRandomStringThatShouldBeIgnoredByParseSize.', 79691776],
+ // 76.24 GB (with typo).
+ ['76.24 Giggabyte', 81862076662],
];
}