Fix tests

This commit is contained in:
Joseph Cohen
2015-03-21 02:33:38 -06:00
parent c5a93d99a7
commit 09e83ab689
6 changed files with 22 additions and 18 deletions

View File

@@ -1,4 +1,6 @@
<?php namespace CachetHQ\Cachet\Providers;
<?php
namespace CachetHQ\Cachet\Providers;
use Illuminate\Bus\Dispatcher;
use Illuminate\Support\ServiceProvider;

View File

@@ -1,4 +1,6 @@
<?php namespace CachetHQ\Cachet\Providers;
<?php
namespace CachetHQ\Cachet\Providers;
use Illuminate\Support\ServiceProvider;

View File

@@ -1,4 +1,6 @@
<?php namespace CachetHQ\Cachet\Providers;
<?php
namespace CachetHQ\Cachet\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

View File

@@ -1,4 +1,6 @@
<?php namespace CachetHQ\Cachet\Providers;
<?php
namespace CachetHQ\Cachet\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Routing\Router;

View File

@@ -1,27 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
syntaxCheck="true"
verbose="true"
>
syntaxCheck="false">
<testsuites>
<testsuite name="Cachet Test Suite">
<directory>./tests</directory>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
</phpunit>

View File

@@ -4,7 +4,7 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ $googleId }}', '{{ $_SERVER['SERVER_NAME'] }}');
ga('create', '{{ $googleId }}', '{{ $_SERVER['SERVER_NAME'] or '' }}');
ga('send', 'pageview');
</script>
@endif