Skip to content

Commit

Permalink
Merge branch 'test-cases' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Aug 26, 2016
2 parents 9ba2e7b + c7d5e21 commit 0a557b3
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@

node_modules/
.idea/

# Laravel 4 specific
bootstrap/compiled.php
app/storage/

# Laravel 5 & Lumen specific
bootstrap/cache/
storage/
.env.*.php
.env.php
.env
.env.example
/vendor
/.env
composer.phar
composer.lock
.DS_Store
Thumbs.db
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: php

php:
- 5.6
- 7.0
- 7.1

sudo: false

install: travis_retry composer install --no-interaction --prefer-dist

script: vendor/bin/phpunit --verbose
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,21 @@
"prettus/l5-repository": "~2.1",
"laracasts/flash": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "~5.0",
"mockery/mockery": "~0.9"
},
"autoload": {
"psr-4": {
"InfyOm\\Generator\\": "src/"
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
}
}
17 changes: 17 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
11 changes: 11 additions & 0 deletions tests/DemoTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Tests;

class DemoTest extends \PHPUnit_Framework_TestCase
{
public function testSomethingIsTrue()
{
$this->assertTrue(true);
}
}

0 comments on commit 0a557b3

Please sign in to comment.