Skip to content

Commit d7ae715

Browse files
committed
Fixed TravisCI tests & optimized examples
1 parent 7fdded4 commit d7ae715

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/simple-feed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
spl_autoload_register(function ($c) {
55
@include_once strtr($c, '\\_', '//') . '.php';
66
});
7-
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/../src');
7+
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__DIR__) . '/src');
88

99
use Suin\RSSWriter\Channel;
1010
use Suin\RSSWriter\Feed;

tests/Bootstrap.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
22

33
// For composer
4-
require_once 'Vendor/autoload.php';
4+
require_once 'vendor/autoload.php';
55

66
// Load test target classes
7-
spl_autoload_register(function($c) { @include_once strtr($c, '\\_', '//').'.php'; });
8-
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__DIR__).'/Source');
7+
spl_autoload_register(function ($c) {
8+
@include_once strtr($c, '\\_', '//') . '.php';
9+
});
10+
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__DIR__) . '/src');

0 commit comments

Comments
 (0)