Code Duplication    Length = 16-16 lines in 2 locations

test/unit/Domain/Service/Basket/FactoryTest.php 1 location

@@ 22-37 (lines=16) @@
19
     */
20
    private $config;
21
22
    public function __construct($name = null, array $data = array(), $dataName = '')
23
    {
24
        parent::__construct($name, $data, $dataName);
25
        $this->config = Configuration::fromArray([
26
            'tickets' => [
27
                'early' => ['name' => 'Early Bird', 'cost' => 5000, 'available' => 75],
28
                'std' => ['name' => 'Standard', 'cost' => 10000, 'available' => 150],
29
                'free' => ['name' => 'Free', 'cost' => 0, 'available' => 100, 'metadata' => ['private' => true]]
30
            ],
31
            'financial' => [
32
                'taxRate' => 10,
33
                'currency' => 'GBP',
34
                'displayTax' => true
35
            ]
36
        ]);
37
    }
38
39
    public function testBasket()
40
    {

test/unit/Domain/Service/Basket/ValidateBasketTest.php 1 location

@@ 24-39 (lines=16) @@
21
     */
22
    private $config;
23
24
    public function __construct($name = null, array $data = array(), $dataName = '')
25
    {
26
        parent::__construct($name, $data, $dataName);
27
        $this->config = Configuration::fromArray([
28
            'tickets' => [
29
                'early' => ['name' => 'Early Bird', 'cost' => 5000, 'available' => 75],
30
                'std' => ['name' => 'Standard', 'cost' => 10000, 'available' => 150],
31
                'free' => ['name' => 'Free', 'cost' => 0, 'available' => 100, 'metadata' => ['private' => true]]
32
            ],
33
            'financial' => [
34
                'taxRate' => 10,
35
                'currency' => 'GBP',
36
                'displayTax' => true
37
            ]
38
        ]);
39
    }
40
41
    public function testValidateThrowsOnEmptyBasket()
42
    {