public function testFindAllMainByExpressionAndObject()
 {
     $aMainPaths = ResourceFinder::findResourcesByExpressions(array('lib', 'main.php'));
     $this->assertSame(1, count($aMainPaths));
     $oFileRes = new FileResource(ArrayUtil::assocPeek($aMainPaths));
     $this->assertSame(array($oFileRes->getRelativePath() => MAIN_DIR . '/base/lib/main.php'), $aMainPaths);
 }
 public function testSiteDirSubItemFullPathOnlyWithTrailingSlash()
 {
     $sFileResource = new FileResource(SITE_DIR . '/web/');
     $this->assertSame(SITE_DIR . '/web', $sFileResource->getFullPath());
     $this->assertSame('site/', $sFileResource->getInstancePrefix());
     $this->assertSame('web', $sFileResource->getRelativePath());
 }