Skip to content

Commit

Permalink
full coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kay committed Dec 22, 2014
1 parent c9acb5a commit d5a9716
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/AssetManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function testStaticBuilders()
$this->assertInstanceOf('\Packaged\Dispatch\AssetManager', $manager);

$this->assertNull($manager->getResourceUri('missing.png'));
$this->assertNull($manager->getResourceUri(''));
}

public function testStore()
Expand Down
7 changes: 7 additions & 0 deletions tests/DispatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ public function urlProvider()
'could not be located'
];

$tests[] = [
array_merge($baseConfig, ['assets_dir'=>'tests/empty']),
'res/p/domain//filehash/test.css',
'www.packaged.in',
'could not be located'
];

$tests[] = [
array_merge($baseConfig, []),
'res/v/packaged/config/domain/b/filehash/composer.json',
Expand Down

0 comments on commit d5a9716

Please sign in to comment.