0
我有一个php项目,它具有在我的单元测试代码路径中内在测试的作曲家依赖关系。这里是我的示例代码:Travis CI默认情况下不区分大小写?
<?php
// where FooBar is a composer package but I'm purposely typing it incorrectly here
use \fooBaR
public function appendNameToWords(array $words, $name)
{
$start = microtime(true);
$newWords = array_map(function($word){
return $word . $name;
}, $words);
// logs the diff between start and end time
FooBar::logTimer($start);
return $newWords;
}
我的测试仅仅是测试方法,但当然在执行我的源代码行FooBar::logTimer
。问题是如果我输错了类FooBar
为fooBaR
,我期望我的测试失败。不幸的是,Travis的构建正在通过......但我不清楚为什么。
.travis.yml
文件:
language: php
php:
- 5.6
install: script/install
script:
- script/test
任何想法是什么地方出错了?