Closed sspat closed 3 years ago
@sspat
assertIsInNamespace
- should we compare the total or partial match of the namespace ?
assertHasUseStatement
- could you give an example of using that API?
@sspat
assertIsInNamespace
- should we compare the total or partial match of the namespace ?
Without class name, only namespace, complete
assertHasUseStatement
- could you give an example of using that API?use Namespace\Class: assertHasUseStatement('Namespace\Class');
use Namespace\Class as OtherClass; assertHasUseStatement('Namespace\Class', 'OtherClass');
The current TypesGenerationTest.testStringTypeGeneration needs to look like this:
For this to work, the GeneratedClassAsserter needs to be implemented with the following API:
All method assertions should also work for making assertions on the constructor. Assertions should internally use the phpunit Assert class with static calls. TypesGenerationTest should be completed demonstrating the above assertions one time each (just for demonstration, this does not need to cover every class generated)