Code Duplication    Length = 16-16 lines in 2 locations

tests/Service/EntitiesGeneratorServiceTest.php 1 location

@@ 21-36 (lines=16) @@
18
     */
19
    private $entitiesGeneratorService;
20
21
    protected function setUp()
22
    {
23
        $this->zohoClient  = new ZohoClient(
24
            [
25
                'client_id' => getenv('client_id'),
26
                'client_secret' => getenv('client_secret'),
27
                'redirect_uri' => getenv('redirect_uri'),
28
                'currentUserEmail' => getenv('currentUserEmail'),
29
                'applicationLogFilePath' => getenv('applicationLogFilePath'),
30
                'persistence_handler_class' => getenv('persistence_handler_class'),
31
                'token_persistence_path' => getenv('token_persistence_path'),
32
            ],
33
            getenv('timeZone')
34
        );
35
        $this->entitiesGeneratorService = new EntitiesGeneratorService($this->zohoClient, new NullLogger());
36
    }
37
38
    public function testGenerateAll()
39
    {

tests/ZohoDaoTest.php 1 location

@@ 17-32 (lines=16) @@
14
     */
15
    private $zohoClient;
16
17
    protected function setUp()
18
    {
19
        $this->zohoClient  = new ZohoClient(
20
            [
21
                'client_id' => getenv('client_id'),
22
                'client_secret' => getenv('client_secret'),
23
                'redirect_uri' => getenv('redirect_uri'),
24
                'currentUserEmail' => getenv('currentUserEmail'),
25
                'applicationLogFilePath' => getenv('applicationLogFilePath'),
26
                'persistence_handler_class' => getenv('persistence_handler_class'),
27
                'token_persistence_path' => getenv('token_persistence_path'),
28
            ],
29
            getenv('timeZone')
30
        );
31
        $this->entitiesGeneratorService = new EntitiesGeneratorService($this->zohoClient, new NullLogger());
32
    }
33
34
    /**
35
     * @depends Wabel\Zoho\CRM\Service\EntitiesGeneratorServiceTest::testGenerateAll