@@ 11-19 (lines=9) @@ | ||
8 | ||
9 | class ItemTest extends \PHPUnit_Framework_TestCase |
|
10 | { |
|
11 | public function testToString() |
|
12 | { |
|
13 | $item = $this->getItemInstance(); |
|
14 | $this->assertNull($item->__toString()); |
|
15 | ||
16 | $test = 'Menu principal'; |
|
17 | $item->setName($test); |
|
18 | $this->assertEquals($test, $item->__toString()); |
|
19 | } |
|
20 | ||
21 | public function testName() |
|
22 | { |
|
@@ 21-29 (lines=9) @@ | ||
18 | $this->assertEquals($test, $item->__toString()); |
|
19 | } |
|
20 | ||
21 | public function testName() |
|
22 | { |
|
23 | $item = $this->getItemInstance(); |
|
24 | $this->assertNull($item->getName()); |
|
25 | ||
26 | $test = 'Menu principal'; |
|
27 | $item->setName($test); |
|
28 | $this->assertEquals($test, $item->getName()); |
|
29 | } |
|
30 | ||
31 | public function testUri() |
|
32 | { |