Definition at line 12 of file LicenseTest.php.
◆ legacyCommentDataProvider()
legacyCommentDataProvider |
( |
| ) |
|
◆ testLegacyComment()
Definition at line 14 of file LicenseTest.php.
16 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
18 function ($filename) {
20 if (!preg_match_all(
'#/\*\*.+@copyright.+?\*/#s', $fileText, $matches)) {
24 foreach ($matches[0] as $commentText) {
25 foreach ([
'Irubin Consulting Inc',
'DBA Varien',
'Magento Inc'] as $legacyText) {
26 $this->assertNotContains(
29 "The license of file {$filename} contains legacy text." legacyCommentDataProvider()
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/static/testsuite/Magento/Test/Legacy/LicenseTest.php