Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add void native type hint #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/CoffeeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CoffeeTest extends TestCase
* @covers \In2it\Drinks\Coffee::__construct
* @covers \In2it\Drinks\Coffee::isEmpty
*/
public function testCoffeeIsFilledAtConstruct()
public function testCoffeeIsFilledAtConstruct(): void
{
$coffee = new Coffee();
$this->assertFalse($coffee->isEmpty());
Expand All @@ -22,7 +22,7 @@ public function testCoffeeIsFilledAtConstruct()
* @covers \In2it\Drinks\Coffee::__construct
* @covers \In2it\Drinks\Coffee::refill
*/
public function testCoffeeCanNotBeRefilledWhileFull()
public function testCoffeeCanNotBeRefilledWhileFull(): void
{
$this->expectException(\DomainException::class);
$coffee = new Coffee();
Expand All @@ -34,7 +34,7 @@ public function testCoffeeCanNotBeRefilledWhileFull()
* @covers \In2it\Drinks\Coffee::__construct
* @covers \In2it\Drinks\Coffee::drink
*/
public function testCanNotDrinkFromAnEmptyCoffee()
public function testCanNotDrinkFromAnEmptyCoffee(): void
{
$this->expectException(\DomainException::class);
$coffee = new Coffee();
Expand All @@ -48,7 +48,7 @@ public function testCanNotDrinkFromAnEmptyCoffee()
* @covers \In2it\Drinks\Coffee::drink
* @covers \In2it\Drinks\Coffee::isEmpty
*/
public function testCoffeeEmptiesWhenPeopleDrinkFromIt()
public function testCoffeeEmptiesWhenPeopleDrinkFromIt(): void
{
$coffee = new Coffee();
$coffee->drink();
Expand All @@ -61,7 +61,7 @@ public function testCoffeeEmptiesWhenPeopleDrinkFromIt()
* @covers \In2it\Drinks\Coffee::refill
* @covers \In2it\Drinks\Coffee::isEmpty
*/
public function testCoffeeIsFullAfterRefill()
public function testCoffeeIsFullAfterRefill(): void
{
$coffee = new Coffee();
$coffee->drink();
Expand Down