PDO Extension on Laravel unit testingHow do I test a private function or a class that has private methods, fields or inner classes?Unit Testing C CodeWhat is Unit test, Integration Test, Smoke test, Regression Test?Laravel Unit Test Class Not FoundAdding subdirectory to tests in Laravel; connection can't be resolvedReturn queried model in Eloquent attributeLaravel 5.2 Unit Tests error: BadMethodCallException: Call to undefined method IlluminateDatabaseQueryBuilder::make()Call to a member function connection() on nullPHP Fatal error: Trait 'IlluminateDatabaseEloquentConcernsHasEvents' not foundihave error when iupload photo or post in site
Why did Tony's Arc Reactor do this?
What exactly is Apple Cider
Electric shock from pedals and guitar. Jacks too long?
is it possible to change a material depending on whether it is intersecting with another object?
Is it right to use the ideas of non-winning designers in a design contest?
Why can't some airports handle heavy aircraft while others do it easily (same runway length)?
Are professors obligated to accept supervisory role? If not, how does it work?
Poor management handling of recent sickness and how to approach my return?
Python implementation of atoi
How to convert P2O5 concentration to H3PO4 concentration?
Why would an airport be depicted with symbology for runways longer than 8,069 feet even though it is reported on the sectional as 7,200 feet?
Problem with listing a directory to grep
Does the word voltage exist in academic engineering?
What happens when a file that is 100% paged in to the page cache gets modified by another process
Why were there so many icicles in this Space Shuttle launch area? (Challenger disaster)
How strong is aircraft-grade spruce?
Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?
Would a character take damage when surrounded by, but not in, flames?
Why are UK MPs allowed to abstain (but it counts as a no)?
Contractor cut joist hangers to make them fit
When did computers stop checking memory on boot?
I won a car in a poker game. How is that taxed in Canada?
Protecting programs on external drives with the same priviledges as in Program Files
Leaving the USA for 10 yrs when you have asylum
PDO Extension on Laravel unit testing
How do I test a private function or a class that has private methods, fields or inner classes?Unit Testing C CodeWhat is Unit test, Integration Test, Smoke test, Regression Test?Laravel Unit Test Class Not FoundAdding subdirectory to tests in Laravel; connection can't be resolvedReturn queried model in Eloquent attributeLaravel 5.2 Unit Tests error: BadMethodCallException: Call to undefined method IlluminateDatabaseQueryBuilder::make()Call to a member function connection() on nullPHP Fatal error: Trait 'IlluminateDatabaseEloquentConcernsHasEvents' not foundihave error when iupload photo or post in site
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've been struggling with setting up unit test with my Laravel application, I'm facing error... it says that PDO extension is not installed and giving me error that "PDOException driver not found" but it's installed!!!. When I serve my application everything is OK!!!
PDO is also installed:
28 => "json"
29 => "exif"
30 => "mysqli"
31 => "pdo_mysql"
32 => "pdo_sqlite"
33 => "Phar"
34 => "posix"
35 => "readline"
36 => "shmop"
Here is my test code:
<?php
namespace TestsUnit;
use AppModelsUserUser;
use TestsTestCase;
use IlluminateFoundationTestingRefreshDatabase;
class ExampleTest extends TestCase
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
factory(User::class)->create();
$this->assertTrue(true);
Trace of error:
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:459
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:411
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php:32
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2653
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1347
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:835
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:800
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:663
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:206
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Support/Collection.php:419
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:207
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:181
/home/soheil/Documents/Projects/PHP/EcollegeMe/tests/Unit/ExampleTest.php:18
Caused by
PDOException: could not find driver
php laravel unit-testing testing
add a comment |
I've been struggling with setting up unit test with my Laravel application, I'm facing error... it says that PDO extension is not installed and giving me error that "PDOException driver not found" but it's installed!!!. When I serve my application everything is OK!!!
PDO is also installed:
28 => "json"
29 => "exif"
30 => "mysqli"
31 => "pdo_mysql"
32 => "pdo_sqlite"
33 => "Phar"
34 => "posix"
35 => "readline"
36 => "shmop"
Here is my test code:
<?php
namespace TestsUnit;
use AppModelsUserUser;
use TestsTestCase;
use IlluminateFoundationTestingRefreshDatabase;
class ExampleTest extends TestCase
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
factory(User::class)->create();
$this->assertTrue(true);
Trace of error:
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:459
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:411
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php:32
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2653
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1347
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:835
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:800
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:663
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:206
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Support/Collection.php:419
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:207
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:181
/home/soheil/Documents/Projects/PHP/EcollegeMe/tests/Unit/ExampleTest.php:18
Caused by
PDOException: could not find driver
php laravel unit-testing testing
How do you run your tests?
– kuh-chan
Mar 28 at 6:16
i'm runing my tests with phpstorm! everything is ok when i run./vendor/bin/phpunit
command
– soheil py
Mar 28 at 6:19
Put some phpinfo call in your unit tests and run it. I think, it uses the wrong version
– kuh-chan
Mar 28 at 6:23
add a comment |
I've been struggling with setting up unit test with my Laravel application, I'm facing error... it says that PDO extension is not installed and giving me error that "PDOException driver not found" but it's installed!!!. When I serve my application everything is OK!!!
PDO is also installed:
28 => "json"
29 => "exif"
30 => "mysqli"
31 => "pdo_mysql"
32 => "pdo_sqlite"
33 => "Phar"
34 => "posix"
35 => "readline"
36 => "shmop"
Here is my test code:
<?php
namespace TestsUnit;
use AppModelsUserUser;
use TestsTestCase;
use IlluminateFoundationTestingRefreshDatabase;
class ExampleTest extends TestCase
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
factory(User::class)->create();
$this->assertTrue(true);
Trace of error:
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:459
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:411
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php:32
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2653
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1347
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:835
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:800
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:663
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:206
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Support/Collection.php:419
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:207
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:181
/home/soheil/Documents/Projects/PHP/EcollegeMe/tests/Unit/ExampleTest.php:18
Caused by
PDOException: could not find driver
php laravel unit-testing testing
I've been struggling with setting up unit test with my Laravel application, I'm facing error... it says that PDO extension is not installed and giving me error that "PDOException driver not found" but it's installed!!!. When I serve my application everything is OK!!!
PDO is also installed:
28 => "json"
29 => "exif"
30 => "mysqli"
31 => "pdo_mysql"
32 => "pdo_sqlite"
33 => "Phar"
34 => "posix"
35 => "readline"
36 => "shmop"
Here is my test code:
<?php
namespace TestsUnit;
use AppModelsUserUser;
use TestsTestCase;
use IlluminateFoundationTestingRefreshDatabase;
class ExampleTest extends TestCase
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
factory(User::class)->create();
$this->assertTrue(true);
Trace of error:
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:624
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:459
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Connection.php:411
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/Processor.php:32
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2653
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1347
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:835
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:800
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:663
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:206
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Support/Collection.php:419
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:207
/home/soheil/Documents/Projects/PHP/EcollegeMe/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:181
/home/soheil/Documents/Projects/PHP/EcollegeMe/tests/Unit/ExampleTest.php:18
Caused by
PDOException: could not find driver
php laravel unit-testing testing
php laravel unit-testing testing
edited Jul 9 at 16:02
Cœur
22.1k10 gold badges127 silver badges180 bronze badges
22.1k10 gold badges127 silver badges180 bronze badges
asked Mar 28 at 6:12
soheil pysoheil py
113 bronze badges
113 bronze badges
How do you run your tests?
– kuh-chan
Mar 28 at 6:16
i'm runing my tests with phpstorm! everything is ok when i run./vendor/bin/phpunit
command
– soheil py
Mar 28 at 6:19
Put some phpinfo call in your unit tests and run it. I think, it uses the wrong version
– kuh-chan
Mar 28 at 6:23
add a comment |
How do you run your tests?
– kuh-chan
Mar 28 at 6:16
i'm runing my tests with phpstorm! everything is ok when i run./vendor/bin/phpunit
command
– soheil py
Mar 28 at 6:19
Put some phpinfo call in your unit tests and run it. I think, it uses the wrong version
– kuh-chan
Mar 28 at 6:23
How do you run your tests?
– kuh-chan
Mar 28 at 6:16
How do you run your tests?
– kuh-chan
Mar 28 at 6:16
i'm runing my tests with phpstorm! everything is ok when i run
./vendor/bin/phpunit
command– soheil py
Mar 28 at 6:19
i'm runing my tests with phpstorm! everything is ok when i run
./vendor/bin/phpunit
command– soheil py
Mar 28 at 6:19
Put some phpinfo call in your unit tests and run it. I think, it uses the wrong version
– kuh-chan
Mar 28 at 6:23
Put some phpinfo call in your unit tests and run it. I think, it uses the wrong version
– kuh-chan
Mar 28 at 6:23
add a comment |
1 Answer
1
active
oldest
votes
Check if you have pdo extension enable on cli you can do this by running php -m
on your terminal.
Make sure you load the pdo extension in both cli and fpm mode
EDIT: you can check which configuration file is used from the command line by running php -i
1
In other words what you are saying is that there may be a separatephp.ini
file. (often namedphp-cli.ini
) - which is something I know, but it's not entirely clear in your answer. In any case it's possible even likely thatcli.ini
does not have PDO enabled... So, it would be my guess as well. (this was something I learned due to Timezone settings, the hard way... lol)
– ArtisticPhoenix
Mar 28 at 6:52
That's not lack of PDO extension, but lack of the mysql or sqlite extension.
– Elias Soares
Jul 9 at 16:57
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55391167%2fpdo-extension-on-laravel-unit-testing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check if you have pdo extension enable on cli you can do this by running php -m
on your terminal.
Make sure you load the pdo extension in both cli and fpm mode
EDIT: you can check which configuration file is used from the command line by running php -i
1
In other words what you are saying is that there may be a separatephp.ini
file. (often namedphp-cli.ini
) - which is something I know, but it's not entirely clear in your answer. In any case it's possible even likely thatcli.ini
does not have PDO enabled... So, it would be my guess as well. (this was something I learned due to Timezone settings, the hard way... lol)
– ArtisticPhoenix
Mar 28 at 6:52
That's not lack of PDO extension, but lack of the mysql or sqlite extension.
– Elias Soares
Jul 9 at 16:57
add a comment |
Check if you have pdo extension enable on cli you can do this by running php -m
on your terminal.
Make sure you load the pdo extension in both cli and fpm mode
EDIT: you can check which configuration file is used from the command line by running php -i
1
In other words what you are saying is that there may be a separatephp.ini
file. (often namedphp-cli.ini
) - which is something I know, but it's not entirely clear in your answer. In any case it's possible even likely thatcli.ini
does not have PDO enabled... So, it would be my guess as well. (this was something I learned due to Timezone settings, the hard way... lol)
– ArtisticPhoenix
Mar 28 at 6:52
That's not lack of PDO extension, but lack of the mysql or sqlite extension.
– Elias Soares
Jul 9 at 16:57
add a comment |
Check if you have pdo extension enable on cli you can do this by running php -m
on your terminal.
Make sure you load the pdo extension in both cli and fpm mode
EDIT: you can check which configuration file is used from the command line by running php -i
Check if you have pdo extension enable on cli you can do this by running php -m
on your terminal.
Make sure you load the pdo extension in both cli and fpm mode
EDIT: you can check which configuration file is used from the command line by running php -i
edited Mar 28 at 6:54
answered Mar 28 at 6:48
KenKen
1,2893 gold badges19 silver badges28 bronze badges
1,2893 gold badges19 silver badges28 bronze badges
1
In other words what you are saying is that there may be a separatephp.ini
file. (often namedphp-cli.ini
) - which is something I know, but it's not entirely clear in your answer. In any case it's possible even likely thatcli.ini
does not have PDO enabled... So, it would be my guess as well. (this was something I learned due to Timezone settings, the hard way... lol)
– ArtisticPhoenix
Mar 28 at 6:52
That's not lack of PDO extension, but lack of the mysql or sqlite extension.
– Elias Soares
Jul 9 at 16:57
add a comment |
1
In other words what you are saying is that there may be a separatephp.ini
file. (often namedphp-cli.ini
) - which is something I know, but it's not entirely clear in your answer. In any case it's possible even likely thatcli.ini
does not have PDO enabled... So, it would be my guess as well. (this was something I learned due to Timezone settings, the hard way... lol)
– ArtisticPhoenix
Mar 28 at 6:52
That's not lack of PDO extension, but lack of the mysql or sqlite extension.
– Elias Soares
Jul 9 at 16:57
1
1
In other words what you are saying is that there may be a separate
php.ini
file. (often named php-cli.ini
) - which is something I know, but it's not entirely clear in your answer. In any case it's possible even likely that cli.ini
does not have PDO enabled... So, it would be my guess as well. (this was something I learned due to Timezone settings, the hard way... lol)– ArtisticPhoenix
Mar 28 at 6:52
In other words what you are saying is that there may be a separate
php.ini
file. (often named php-cli.ini
) - which is something I know, but it's not entirely clear in your answer. In any case it's possible even likely that cli.ini
does not have PDO enabled... So, it would be my guess as well. (this was something I learned due to Timezone settings, the hard way... lol)– ArtisticPhoenix
Mar 28 at 6:52
That's not lack of PDO extension, but lack of the mysql or sqlite extension.
– Elias Soares
Jul 9 at 16:57
That's not lack of PDO extension, but lack of the mysql or sqlite extension.
– Elias Soares
Jul 9 at 16:57
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55391167%2fpdo-extension-on-laravel-unit-testing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How do you run your tests?
– kuh-chan
Mar 28 at 6:16
i'm runing my tests with phpstorm! everything is ok when i run
./vendor/bin/phpunit
command– soheil py
Mar 28 at 6:19
Put some phpinfo call in your unit tests and run it. I think, it uses the wrong version
– kuh-chan
Mar 28 at 6:23