| @@ 77-88 (lines=12) @@ | ||
| 74 | ]);  | 
                                |
| 75 | }  | 
                                |
| 76 | ||
| 77 | public function testResourcesHasMagicMethod()  | 
                                |
| 78 |     { | 
                                |
| 79 | $foo = Foo::box([  | 
                                |
| 80 | 'name' => 'Simone',  | 
                                |
| 81 | 'surname' => 'Gentili',  | 
                                |
| 82 | ]);  | 
                                |
| 83 | ||
| 84 | $this->assertEquals(  | 
                                |
| 85 | 'Simone',  | 
                                |
| 86 | $foo->name()  | 
                                |
| 87 | );  | 
                                |
| 88 | }  | 
                                |
| 89 | ||
| 90 | /**  | 
                                |
| 91 | * @expectedException Sensorario\Resources\Exceptions\PropertyNameEmptyException  | 
                                |
| @@ 94-105 (lines=12) @@ | ||
| 91 | * @expectedException Sensorario\Resources\Exceptions\PropertyNameEmptyException  | 
                                |
| 92 | * @expectedExceptionMessage Oops! Property name requested is empty string!!  | 
                                |
| 93 | */  | 
                                |
| 94 | public function testExceptionMessageInCaseOfEmptyPropertyName()  | 
                                |
| 95 |     { | 
                                |
| 96 | $foo = Foo::box([  | 
                                |
| 97 | 'name' => 'Simone',  | 
                                |
| 98 | 'surname' => 'Gentili',  | 
                                |
| 99 | ]);  | 
                                |
| 100 | ||
| 101 | $this->assertEquals(  | 
                                |
| 102 | 'Simone',  | 
                                |
| 103 |             $foo->get('') | 
                                |
| 104 | );  | 
                                |
| 105 | }  | 
                                |
| 106 | ||
| 107 | /**  | 
                                |
| 108 | * @expectedException Sensorario\Resources\Exceptions\FactoryMethodException  | 
                                |