Merge branch 'master' of github.com:XaminProject/handlebars.php

This commit is contained in:
fzerorubigd 2013-11-08 11:03:08 +03:30
commit de8e0a4c96
4 changed files with 7 additions and 3 deletions

View File

@ -2,3 +2,6 @@ language: php
php:
- 5.3
- 5.4
- 5.5
before_script: composer install
script: "./vendor/bin/phpunit && ./vendor/bin/phpcs -n src/"

View File

@ -20,7 +20,8 @@
},
"require-dev": {
"phpunit/phpunit": "3.8.*"
"phpunit/phpunit": "3.7.*",
"squizlabs/php_codesniffer": "1.*"
},
"autoload": {
"psr-0": {

View File

@ -88,7 +88,7 @@ class Autoloader
$file = sprintf('%s/%s.php', $this->_baseDir, str_replace('\\', '/', $class));
if (is_file($file)) {
require $file;
include $file;
}
}

View File

@ -1,4 +1,4 @@
<?php
include __DIR__ . "/../src/Handlebars/Autoloader.php";
$base = __DIR__ . "/../src";
$loader = new \Handlebars\Autoloader(realpath($base));
$loader = \Handlebars\Autoloader::register();