Code Duplication    Length = 10-10 lines in 3 locations

tests/Model/ItemTest.php 1 location

@@ 64-73 (lines=10) @@
61
        $this->assertEquals($expected, $this->item->getScore());
62
    }
63
64
    public function testDateCreated()
65
    {
66
        $expected = new \DateTime();
67
        $this->assertNull($this->item->getDateCreated());
68
        $this->assertSame($this->item, $this->item->setDateCreated($expected));
69
        $this->assertSame($expected, $this->item->getDateCreated());
70
71
        $this->item->setDateCreated('2010-01-01 00:00:00');
72
        $this->assertInstanceOf('DateTime', $this->item->getDateCreated());
73
    }
74
75
    public function testToArray()
76
    {

tests/Model/LevelTest.php 1 location

@@ 74-83 (lines=10) @@
71
        $this->assertEquals($expected, $this->level->getImageUrl());
72
    }
73
74
    public function testDateCreated()
75
    {
76
        $expected = new \DateTime();
77
        $this->assertNull($this->level->getDateCreated());
78
        $this->assertSame($this->level, $this->level->setDateCreated($expected));
79
        $this->assertSame($expected, $this->level->getDateCreated());
80
81
        $this->level->setDateCreated('2010-01-01 00:00:00');
82
        $this->assertInstanceOf('DateTime', $this->level->getDateCreated());
83
    }
84
85
    public function testBadge()
86
    {

tests/Model/QuestTest.php 1 location

@@ 26-35 (lines=10) @@
23
        $this->quest = new Quest();
24
    }
25
26
    public function testStartDate()
27
    {
28
        $expected = new \DateTime();
29
        $this->assertNull($this->quest->getStartDate());
30
        $this->assertSame($this->quest, $this->quest->setStartDate($expected));
31
        $this->assertSame($expected, $this->quest->getStartDate());
32
33
        $this->quest->setStartDate('2010-01-01 00:00:00');
34
        $this->assertInstanceOf('DateTime', $this->quest->getStartDate());
35
    }
36
37
    public function testCode()
38
    {