Code Duplication    Length = 12-12 lines in 2 locations

tests/unit/Debtor/DebtorTest.php 1 location

@@ 10-21 (lines=12) @@
7
8
Intraface_Doctrine_Intranet::singleton(1);
9
10
class FakeDebtorAddress
11
{
12
    function get($key = '')
13
    {
14
        $info = array('name' => 'Lars Olesen', 'address' => 'Gr�svangen 8, Syvsten', 'postcode' => 9300, 'city' => 'Aarhus N', 'cvr' => '', 'ean' => '', 'phone' => '75820811', 'email' => '[email protected]', 'address_id' => 1);
15
        if (empty($key)) {
16
            return $info;
17
        } else {
18
            return $info[$key];
19
        }
20
    }
21
}
22
23
class FakeDebtorUser
24
{

tests/unit/Stub/Address.php 1 location

@@ 2-13 (lines=12) @@
1
<?php
2
class Stub_Address
3
{
4
    function get($key = '')
5
    {
6
        $info = array('name' => 'Lars Olesen', 'address' => 'Græsvangen 8, Syvsten', 'postcode' => 9300, 'city' => 'Aarhus N', 'country' => 'Danmark', 'cvr' => '123456789', 'ean' => '', 'phone' => '75820811', 'email' => '[email protected]', 'address_id' => 1);
7
        if (empty($key)) {
8
            return $info;
9
        } else {
10
            return $info[$key];
11
        }
12
    }
13
}
14