Skip to content

Commit

Permalink
update composer.json, add .gitignore, phpunit.xml & bootstrap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
azine committed Jan 23, 2018
1 parent 9acc367 commit c48a8b5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/vendor
/composer.lock
/.idea
21 changes: 21 additions & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/*
* This file is part of the EWZSearchBundle package.
*
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

if (!($loader = @include __DIR__.'/../vendor/autoload.php')) {
echo <<<'EOT'
You need to install the project dependencies using Composer:
$ wget http://getcomposer.org/composer.phar
OR
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install --dev
$ phpunit
EOT;
exit(1);
}
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
}
],
"require": {
"symfony/framework-bundle": "2.*",
"php": "^5.5.9 || ^7.0",
"symfony/framework-bundle": "^2.0||^3.0",
"excelwebzone/zend-search": "~1.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^2.0 || ^3.0 || ^4.0",
"phpunit/phpunit": "~5.0"
},
"autoload": {
"psr-0": { "EWZ\\Bundle\\SearchBundle": "" }
},
Expand Down
21 changes: 21 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="./Tests/bootstrap.php" colors="true">

<testsuites>
<testsuite name="full test suite">
<directory suffix="Test.php">./Tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Resources</directory>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

0 comments on commit c48a8b5

Please sign in to comment.