| 1 | <?php |
||
| 7 | class SilverStripeVersionTest extends SapphireTest |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var SilverStripeVersion |
||
| 11 | */ |
||
| 12 | protected $version; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create a test version |
||
| 16 | * |
||
| 17 | * {@inheritDoc} |
||
| 18 | */ |
||
| 19 | public function setUp() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Ensure that a simple string is returned for the version, which can be used for comparing composer |
||
| 32 | * constraints against for validity |
||
| 33 | */ |
||
| 34 | public function testGetConstraint() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Test various composer constraints against the version to see if this SilverStripe version would apply to |
||
| 41 | * the module |
||
| 42 | * |
||
| 43 | * @dataProvider constraintProvider |
||
| 44 | * @param string $constraint |
||
| 45 | * @param bool $expected |
||
| 46 | */ |
||
| 47 | public function testGetConstraintValidity($constraint, $expected) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array[] |
||
| 54 | */ |
||
| 55 | public function constraintProvider() |
||
| 74 | } |
||
| 75 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.