internations / testing-component
A collection of test helpers for Symfony 3 projects
Installs: 58 599
Dependents: 7
Suggesters: 0
Security: 0
Stars: 4
Watchers: 32
Forks: 3
Open Issues: 0
Requires
- php: >=7.1.3
Requires (Dev)
- doctrine/annotations: ^1.2
- internations/kodierungsregelwerksammlung: ~0.35
- phpunit/phpunit: ~7 || ~8 || ~9
- symfony/config: ^4.0
- symfony/css-selector: ~3
- symfony/dependency-injection: ^4.0
- symfony/dom-crawler: ^4.0 || ^5.0
- symfony/framework-bundle: ^4.0 || ^5.0
- symfony/http-kernel: ^4.0
- symfony/validator: ^4.0 || ^5.0
Suggests
- symfony/css-selector: Dependency for symfony/dom-crawler
- symfony/dom-crawler: Necessary to use DomCrawlerAssertionTrait
README
A collection of test helpers to ease testing of Symfony3 projects.
The base test class
<?php use InterNations\Component\Testing\AbstractTestCase; class MyTest extends AbstractTestCase { }
Accessing restricted members
<?php use InterNations\Component\Testing\AccessTrait; class MyTest ... { use AccessTrait; public function testSomething() { $this->setNonPublicProperty($this->sut, 'privateProperty', 'value'); $this->callNonPublicMethod($this->sut, 'protectedMethod', ['arg1', 'arg2']); } }