aedart / athenaeum-testing
Testing utilities built on top of Orchestra Testbench and Codeception
6.2.0
2022-04-27 10:57 UTC
Requires
- php: ^8.0.2
- aedart/athenaeum-container: ^6.2
- aedart/athenaeum-contracts: ^6.2
- codeception/codeception: ^5.0.0-RC1
- codeception/module-asserts: *@dev
- fakerphp/faker: ^v1.17.0
- mockery/mockery: 1.5.*
- orchestra/testbench: ^v7.0.0
- orchestra/testbench-dusk: ^v7.0.0
- dev-main
- 6.2.0
- 6.1.1
- 6.1.0
- 6.0.2
- 6.0.1
- 6.0.0
- 5.27.0
- 5.26.0
- 5.25.0
- 5.24.2
- 5.24.1
- 5.24.0
- 5.23.0
- 5.22.4
- 5.22.3
- 5.22.2
- 5.22.1
- 5.22.0
- 5.21.0
- 5.20.0
- 5.19.0
- 5.18.1
- 5.18.0
- 5.17.0
- 5.16.0
- 5.15.0
- 5.14.1
- 5.14.0
- 5.13.2
- 5.13.1
- 5.13.0
- 5.12.0
- 5.11.0
- 5.10.1
- 5.10.0
- 5.9.0
- 5.8.0
- 5.7.0
- 5.6.0
- 5.5.1
- 5.5.0
- 5.4.0
- 5.3.5
- 5.3.4
- 5.3.3
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.1
- 5.2.0
- 5.1.0
- 5.0.2
- 5.0.1
- 5.0.0
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.1
- v4.0
This package is auto-updated.
Last update: 2022-05-11 08:29:22 UTC
README
The Testing package offers various testing utilities, built on top of Codeception and Orchestra Testbench. It allows you to test Laravel specific components, Laravel's application and offers a few utilities for testing the Athenaeum Core Application.
Lastly, this package also comes with Mockery and Faker.
Exaxmple
use \Aedart\Testing\TestCases\UnitTestCase; class FuelConsumptionTest extends UnitTestCase { /** * @test */ public function calculatesFuel() { $faker = $this->getFaker(); $kilometers = $faker->numberBetween(1, 25); $consumption = FuelConsumption::calculate($kilometers); // ... remaining not shown ... } }
Documentation
Please read the official documentation for additional information.
Repository
The mono repository is located at github.com/aedart/athenaeum
Versioning
This package follows Semantic Versioning 2.0.0
License
BSD-3-Clause, Read the LICENSE file included in this package