在我的lint和单元测试之间,我想检查任何php文件是否生成任何输出。我在尝试这样的东西,显然不起作用:php_inc: $(error PHPinclude files should not have any output when parsed)关于如何写这篇文章的建议,还是更好的解决问题的方法?
快速测试问题我有一个FizzBuzz实现, (1..n).each do |num| string << 'Fizz' ifputs stringendit 'should return the word Fizz for a number divisible by 3' do
expectthing.fizzbuzz(3)).to eq ("Fizz&quo