| Total Complexity | 4 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class AuthorTestCase extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Testa se a classe retorna as propriedades básicas do autor |
||
| 16 | * com o tipo correto |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public function testAuthorProperties() |
||
| 21 | { |
||
| 22 | $signture = 'Giuliano Sampaio <[email protected]>'; |
||
| 23 | |||
| 24 | $author = new Author(); |
||
| 25 | |||
| 26 | $author->set($signture); |
||
| 27 | |||
| 28 | $this->assertAuthorProperties($author); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Testa se consegue carregar as informações do autor definido |
||
| 33 | * no arquivo de configuração do pacote |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function testLoadDefaultAuthor() |
||
| 38 | { |
||
| 39 | $author = new Author(); |
||
| 40 | |||
| 41 | $default = $author->default(); |
||
| 42 | |||
| 43 | $this->assertDefaultAuthor($default); |
||
| 44 | |||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Te |
||
| 49 | * |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | private function assertAuthorProperties(Author $author) |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Undocumented function |
||
| 60 | * |
||
| 61 | * @param Author $author |
||
| 62 | * @return void |
||
| 63 | */ |
||
| 64 | private function assertDefaultAuthor(Author $author) |
||
| 71 | } |
||
| 72 | } |