Source of file MockDataObjectAnnotator.php
Size: 0,708 Bytes - Last Modified: 2021-12-23T10:24:49+00:00
/var/www/docs.ssmods.com/process/src/tests/mock/MockDataObjectAnnotator.php
12345678910111213141516171819202122232425262728 | <?php namespace SilverLeague\IDEAnnotator\tests; use SilverLeague\IDEAnnotator\DataObjectAnnotator; use SilverStripe\Dev\TestOnly; /** * Class MockDataObjectAnnotator * Overload DataObjectAnnotator to make protected methods testable. * In this way we can just test the generated annotations without actually writing the files. */ class MockDataObjectAnnotator extends DataObjectAnnotator implements TestOnly { /** * @param $fileContent * @param $className * * @return mixed * @throws \ReflectionException */ public function getGeneratedFileContent($fileContent, $className) { return parent::getGeneratedFileContent($fileContent, $className); } } |