Added sample test case for travis

This commit is contained in:
Manish Verma
2018-08-13 14:15:16 +05:30
parent 4c46d979a8
commit 0ad0391cb0
4 changed files with 4 additions and 6 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
# Please try and keep this file organized by alphabetical order. Single files first, then directories. # Please try and keep this file organized by alphabetical order. Single files first, then directories.
.env .env
.phpunit.result.cache
Homestead.yaml Homestead.yaml
Homestead.json Homestead.json
/config/lfm.php /config/lfm.php

View File

@@ -242,7 +242,7 @@ class PhpMailController extends Controller
} }
// $mail->addBCC($bc); // $mail->addBCC($bc);
$size = count($attach); $size = ($attach) ? count($attach) : 0;
if ($size > 0) { if ($size > 0) {
for ($i = 0; $i < $size; $i++) { for ($i = 0; $i < $size; $i++) {
if (is_array($attach) && array_key_exists($i, $attach)) { if (is_array($attach) && array_key_exists($i, $attach)) {

View File

@@ -7,8 +7,7 @@
convertNoticesToExceptions="true" convertNoticesToExceptions="true"
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
processIsolation="false" processIsolation="false"
stopOnFailure="false" stopOnFailure="false">
syntaxCheck="false">
<testsuites> <testsuites>
<testsuite name="Application Test Suite"> <testsuite name="Application Test Suite">
<directory>./tests/</directory> <directory>./tests/</directory>

View File

@@ -9,8 +9,6 @@ class ExampleTest extends TestCase
*/ */
public function testBasicExample() public function testBasicExample()
{ {
// $response = $this->call('GET', '/'); $this->assertEquals(1, 55-54);
// $this->assertEquals(200, $response->getStatusCode());
} }
} }