Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 2e166e1

Browse files
committed
Remove error_reporting methods
1 parent d374961 commit 2e166e1

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ php:
55
- 5.5
66
- 5.6
77

8-
before_install: echo "extension=ldap.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
9-
108
before_script:
119
- travis_retry composer self-update
1210
- travis_retry composer install --prefer-source --no-interaction --dev

tests/AdldapTest.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Adldap\Laravel\Tests;
44

5-
use Adldap\Models\User;
65
use Mockery;
6+
use Adldap\Models\User;
77
use Adldap\Laravel\Facades\Adldap;
88
use Illuminate\Support\Facades\Auth;
99
use Illuminate\Support\Facades\App;
@@ -27,9 +27,6 @@ public function testRegistration()
2727

2828
public function testAuthPasses()
2929
{
30-
// Get around E Strict warning about mockery's __call signature being different
31-
if(defined('E_STRICT')) error_reporting('E_ALL ^ E_STRICT');
32-
3330
$mockedBuilder = Mockery::mock('Adldap\Query\Builder');
3431

3532
$rawAttributes = [
@@ -62,9 +59,6 @@ public function testAuthPasses()
6259

6360
public function testAuthFails()
6461
{
65-
// Get around E Strict warning about mockery's __call signature being different
66-
if(defined('E_STRICT')) error_reporting('E_ALL ^ E_STRICT');
67-
6862
$mockedBuilder = Mockery::mock('Adldap\Query\Builder');
6963

7064
$mockedSearch = Mockery::mock('Adldap\Classes\Search');
@@ -83,9 +77,6 @@ public function testAuthFails()
8377

8478
public function testAuthFailsWhenUserFound()
8579
{
86-
// Get around E Strict warning about mockery's __call signature being different
87-
if(defined('E_STRICT')) error_reporting('E_ALL ^ E_STRICT');
88-
8980
$mockedBuilder = Mockery::mock('Adldap\Query\Builder');
9081

9182
$rawAttributes = [

tests/FunctionalTestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ protected function getEnvironmentSetup($app)
4444
/**
4545
* Get the package service providers required for testing.
4646
*
47+
* @param \Illuminate\Foundation\Application $app
48+
*
4749
* @return array
4850
*/
4951
protected function getPackageProviders($app)
@@ -57,6 +59,8 @@ protected function getPackageProviders($app)
5759
/**
5860
* Get the package aliases for testing.
5961
*
62+
* @param \Illuminate\Foundation\Application $app
63+
*
6064
* @return array
6165
*/
6266
protected function getPackageAliases($app)

0 commit comments

Comments
 (0)