-
Notifications
You must be signed in to change notification settings - Fork 2
/
CuisinierTest.php
47 lines (33 loc) · 1.03 KB
/
CuisinierTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
declare(strict_types=1);
namespace BurritoFactory;
use BurritoFactory\Ingredients\Pain;
use BurritoFactory\Ingredients\PainGrillé;
use BurritoFactory\Ingredients\Poivron;
use BurritoFactory\Ingredients\PoivronFondant;
use PHPUnit\Framework\TestCase;
class CuisinierTest extends TestCase
{
/**
* @test
*/
public function prépare_des_poivrons_fondants_avec_un_four(): void
{
$poivron = new Poivron();
$kulinarisk = new \AKEI\Kulinarisk();
$cuisiner = new Cuisinier($kulinarisk);
$platPréparé = $cuisiner->prépareUnPoivronFondant($poivron);
$this->assertEquals(new PoivronFondant(), $platPréparé);
}
/**
* @test
*/
public function prépare_du_pain_grillé_avec_un_four(): void
{
$pain = new Pain();
$kulinarisk = new \AKEI\Kulinarisk();
$cuisiner = new Cuisinier($kulinarisk);
$platPréparé = $cuisiner->prépareDuPainGrillé($pain);
$this->assertEquals(new PainGrillé(), $platPréparé);
}
}