From 948d1f0a5d50c973b3bd47b329ea32bba15213b8 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 3 Jun 2016 09:35:27 -0400 Subject: [PATCH] Applied fixes from StyleCI --- src/Documents/Bulk/BulkAction.php | 2 - src/Documents/Bulk/BulkQuery.php | 1 - src/ElasticsearchService.php | 1 - src/ElasticsearchServiceProvider.php | 1 - src/Parsers/SortStringParser.php | 1 - src/Search/Query/Compound/AbstractQuery.php | 1 - src/Search/Query/FullText/AbstractQuery.php | 1 - src/Search/Query/FullText/MatchQuery.php | 2 - src/Search/Query/Geo/AbstractQuery.php | 1 - src/Search/Query/Joining/AbstractQuery.php | 1 - src/Search/Query/QueryDSL.php | 2 +- src/Search/Query/TermLevel/AbstractQuery.php | 1 - src/Search/Sort.php | 4 +- src/Search/Sort/FieldSort.php | 1 - src/Search/Sort/SortBuilder.php | 1 - tests/_support/Helper/Unit.php | 1 - .../_support/_generated/UnitTesterActions.php | 96 ++++++++++++------- tests/unit/BulkQueryTest.php | 2 - tests/unit/CompoundQueryTest.php | 1 - tests/unit/DocSortTest.php | 1 - tests/unit/FieldSortTest.php | 1 - tests/unit/JoiningQueryTest.php | 1 - tests/unit/LeafQueryTest.php | 1 - tests/unit/PagerfantaAdapterTest.php | 1 - tests/unit/ScoreSortTest.php | 1 - tests/unit/SearchTest.php | 1 - tests/unit/ServiceTest.php | 12 +-- tests/unit/SortStringParserTest.php | 1 - tests/unit/SortTest.php | 2 - 29 files changed, 72 insertions(+), 71 deletions(-) diff --git a/src/Documents/Bulk/BulkAction.php b/src/Documents/Bulk/BulkAction.php index c2958bf..aaae7dc 100644 --- a/src/Documents/Bulk/BulkAction.php +++ b/src/Documents/Bulk/BulkAction.php @@ -2,7 +2,6 @@ class BulkAction { - const ACTION_INDEX = 'index'; /** @@ -70,5 +69,4 @@ public function setBody(array $body) $this->body = $body; return $this; } - } diff --git a/src/Documents/Bulk/BulkQuery.php b/src/Documents/Bulk/BulkQuery.php index 4ca98b8..748e1e8 100644 --- a/src/Documents/Bulk/BulkQuery.php +++ b/src/Documents/Bulk/BulkQuery.php @@ -88,5 +88,4 @@ public function toArray() return $result; } - } diff --git a/src/ElasticsearchService.php b/src/ElasticsearchService.php index 0ebe478..fb7b6c9 100644 --- a/src/ElasticsearchService.php +++ b/src/ElasticsearchService.php @@ -146,5 +146,4 @@ public function execute(Search $search) 'body' => $search->buildBody(), ]); } - } diff --git a/src/ElasticsearchServiceProvider.php b/src/ElasticsearchServiceProvider.php index e01d4d4..4afe214 100644 --- a/src/ElasticsearchServiceProvider.php +++ b/src/ElasticsearchServiceProvider.php @@ -6,7 +6,6 @@ class ElasticsearchServiceProvider extends ServiceProvider { - const CONFIG_KEY = 'elasticsearch'; diff --git a/src/Parsers/SortStringParser.php b/src/Parsers/SortStringParser.php index d0ca65c..59f6cd6 100644 --- a/src/Parsers/SortStringParser.php +++ b/src/Parsers/SortStringParser.php @@ -52,5 +52,4 @@ public function buildSortFromString($string) return $sorts; } - } diff --git a/src/Search/Query/Compound/AbstractQuery.php b/src/Search/Query/Compound/AbstractQuery.php index 681e70a..6f022fb 100644 --- a/src/Search/Query/Compound/AbstractQuery.php +++ b/src/Search/Query/Compound/AbstractQuery.php @@ -45,5 +45,4 @@ */ abstract class AbstractQuery extends QueryDSL { - } diff --git a/src/Search/Query/FullText/AbstractQuery.php b/src/Search/Query/FullText/AbstractQuery.php index 3c68c06..2e9f552 100644 --- a/src/Search/Query/FullText/AbstractQuery.php +++ b/src/Search/Query/FullText/AbstractQuery.php @@ -29,5 +29,4 @@ */ abstract class AbstractQuery extends QueryDSL { - } diff --git a/src/Search/Query/FullText/MatchQuery.php b/src/Search/Query/FullText/MatchQuery.php index aff66ba..ba22487 100644 --- a/src/Search/Query/FullText/MatchQuery.php +++ b/src/Search/Query/FullText/MatchQuery.php @@ -9,7 +9,6 @@ */ class MatchQuery extends AbstractQuery { - const OPERATOR_OR = 'or'; const OPERATOR_AND = 'and'; @@ -194,7 +193,6 @@ public function setCutOffFrequency($cutOffFrequency) public function getCutOffFrequency() { return $this->cutOffFrequency; - } diff --git a/src/Search/Query/Geo/AbstractQuery.php b/src/Search/Query/Geo/AbstractQuery.php index 0dd20a6..6192a94 100644 --- a/src/Search/Query/Geo/AbstractQuery.php +++ b/src/Search/Query/Geo/AbstractQuery.php @@ -31,5 +31,4 @@ */ abstract class AbstractQuery extends QueryDSL { - } diff --git a/src/Search/Query/Joining/AbstractQuery.php b/src/Search/Query/Joining/AbstractQuery.php index e1b6df7..b6183b5 100644 --- a/src/Search/Query/Joining/AbstractQuery.php +++ b/src/Search/Query/Joining/AbstractQuery.php @@ -19,5 +19,4 @@ */ abstract class AbstractQuery extends QueryDSL { - } diff --git a/src/Search/Query/QueryDSL.php b/src/Search/Query/QueryDSL.php index c6bd818..a9ee36a 100644 --- a/src/Search/Query/QueryDSL.php +++ b/src/Search/Query/QueryDSL.php @@ -21,5 +21,5 @@ abstract class QueryDSL /** * @return array */ - abstract function toArray(); + abstract public function toArray(); } diff --git a/src/Search/Query/TermLevel/AbstractQuery.php b/src/Search/Query/TermLevel/AbstractQuery.php index dd57b87..dff5965 100644 --- a/src/Search/Query/TermLevel/AbstractQuery.php +++ b/src/Search/Query/TermLevel/AbstractQuery.php @@ -50,5 +50,4 @@ */ abstract class AbstractQuery extends QueryDSL { - } diff --git a/src/Search/Sort.php b/src/Search/Sort.php index a6cf17b..c75a664 100644 --- a/src/Search/Sort.php +++ b/src/Search/Sort.php @@ -21,7 +21,8 @@ class Sort /** * @return array */ - public function toArray() { + public function toArray() + { $result = []; foreach ($this->getSorts() as $sort) { $result[] = $sort->toArray(); @@ -60,5 +61,4 @@ public function getSorts() { return $this->sorts; } - } diff --git a/src/Search/Sort/FieldSort.php b/src/Search/Sort/FieldSort.php index 4e15b00..3e4d029 100644 --- a/src/Search/Sort/FieldSort.php +++ b/src/Search/Sort/FieldSort.php @@ -107,5 +107,4 @@ public function getUnmappedType() { return $this->unmappedType; } - } diff --git a/src/Search/Sort/SortBuilder.php b/src/Search/Sort/SortBuilder.php index 5e1a598..4f22da0 100644 --- a/src/Search/Sort/SortBuilder.php +++ b/src/Search/Sort/SortBuilder.php @@ -28,5 +28,4 @@ public function createDocSort() { return new DocSort(); } - } diff --git a/tests/_support/Helper/Unit.php b/tests/_support/Helper/Unit.php index 6064d37..b538643 100644 --- a/tests/_support/Helper/Unit.php +++ b/tests/_support/Helper/Unit.php @@ -6,5 +6,4 @@ class Unit extends \Codeception\Module { - } diff --git a/tests/_support/_generated/UnitTesterActions.php b/tests/_support/_generated/UnitTesterActions.php index 5f43b30..09aa772 100644 --- a/tests/_support/_generated/UnitTesterActions.php +++ b/tests/_support/_generated/UnitTesterActions.php @@ -26,7 +26,8 @@ abstract protected function getScenario(); * @param string $message * @see \Codeception\Module\Asserts::assertEquals() */ - public function assertEquals($expected, $actual, $message = null) { + public function assertEquals($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args())); } @@ -41,7 +42,8 @@ public function assertEquals($expected, $actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertNotEquals() */ - public function assertNotEquals($expected, $actual, $message = null) { + public function assertNotEquals($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args())); } @@ -57,7 +59,8 @@ public function assertNotEquals($expected, $actual, $message = null) { * @return mixed|void * @see \Codeception\Module\Asserts::assertSame() */ - public function assertSame($expected, $actual, $message = null) { + public function assertSame($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args())); } @@ -72,7 +75,8 @@ public function assertSame($expected, $actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertNotSame() */ - public function assertNotSame($expected, $actual, $message = null) { + public function assertNotSame($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args())); } @@ -87,7 +91,8 @@ public function assertNotSame($expected, $actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertGreaterThan() */ - public function assertGreaterThan($expected, $actual, $message = null) { + public function assertGreaterThan($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args())); } @@ -98,7 +103,8 @@ public function assertGreaterThan($expected, $actual, $message = null) { * @deprecated * @see \Codeception\Module\Asserts::assertGreaterThen() */ - public function assertGreaterThen($expected, $actual, $message = null) { + public function assertGreaterThen($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThen', func_get_args())); } @@ -113,7 +119,8 @@ public function assertGreaterThen($expected, $actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertGreaterThanOrEqual() */ - public function assertGreaterThanOrEqual($expected, $actual, $message = null) { + public function assertGreaterThanOrEqual($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args())); } @@ -124,7 +131,8 @@ public function assertGreaterThanOrEqual($expected, $actual, $message = null) { * @deprecated * @see \Codeception\Module\Asserts::assertGreaterThenOrEqual() */ - public function assertGreaterThenOrEqual($expected, $actual, $message = null) { + public function assertGreaterThenOrEqual($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThenOrEqual', func_get_args())); } @@ -139,7 +147,8 @@ public function assertGreaterThenOrEqual($expected, $actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertLessThan() */ - public function assertLessThan($expected, $actual, $message = null) { + public function assertLessThan($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args())); } @@ -154,7 +163,8 @@ public function assertLessThan($expected, $actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertLessThanOrEqual() */ - public function assertLessThanOrEqual($expected, $actual, $message = null) { + public function assertLessThanOrEqual($expected, $actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args())); } @@ -169,7 +179,8 @@ public function assertLessThanOrEqual($expected, $actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertContains() */ - public function assertContains($needle, $haystack, $message = null) { + public function assertContains($needle, $haystack, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args())); } @@ -184,7 +195,8 @@ public function assertContains($needle, $haystack, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertNotContains() */ - public function assertNotContains($needle, $haystack, $message = null) { + public function assertNotContains($needle, $haystack, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args())); } @@ -199,7 +211,8 @@ public function assertNotContains($needle, $haystack, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertRegExp() */ - public function assertRegExp($pattern, $string, $message = null) { + public function assertRegExp($pattern, $string, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args())); } @@ -214,7 +227,8 @@ public function assertRegExp($pattern, $string, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertNotRegExp() */ - public function assertNotRegExp($pattern, $string, $message = null) { + public function assertNotRegExp($pattern, $string, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args())); } @@ -228,7 +242,8 @@ public function assertNotRegExp($pattern, $string, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertEmpty() */ - public function assertEmpty($actual, $message = null) { + public function assertEmpty($actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args())); } @@ -242,7 +257,8 @@ public function assertEmpty($actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertNotEmpty() */ - public function assertNotEmpty($actual, $message = null) { + public function assertNotEmpty($actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args())); } @@ -256,7 +272,8 @@ public function assertNotEmpty($actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertNull() */ - public function assertNull($actual, $message = null) { + public function assertNull($actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args())); } @@ -270,7 +287,8 @@ public function assertNull($actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertNotNull() */ - public function assertNotNull($actual, $message = null) { + public function assertNotNull($actual, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args())); } @@ -284,7 +302,8 @@ public function assertNotNull($actual, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertTrue() */ - public function assertTrue($condition, $message = null) { + public function assertTrue($condition, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args())); } @@ -298,7 +317,8 @@ public function assertTrue($condition, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertFalse() */ - public function assertFalse($condition, $message = null) { + public function assertFalse($condition, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args())); } @@ -312,7 +332,8 @@ public function assertFalse($condition, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertFileExists() */ - public function assertFileExists($filename, $message = null) { + public function assertFileExists($filename, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args())); } @@ -326,7 +347,8 @@ public function assertFileExists($filename, $message = null) { * @param string $message * @see \Codeception\Module\Asserts::assertFileNotExists() */ - public function assertFileNotExists($filename, $message = null) { + public function assertFileNotExists($filename, $message = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args())); } @@ -339,7 +361,8 @@ public function assertFileNotExists($filename, $message = null) { * @param $description * @see \Codeception\Module\Asserts::assertGreaterOrEquals() */ - public function assertGreaterOrEquals($expected, $actual, $description = null) { + public function assertGreaterOrEquals($expected, $actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args())); } @@ -352,7 +375,8 @@ public function assertGreaterOrEquals($expected, $actual, $description = null) { * @param $description * @see \Codeception\Module\Asserts::assertLessOrEquals() */ - public function assertLessOrEquals($expected, $actual, $description = null) { + public function assertLessOrEquals($expected, $actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args())); } @@ -364,7 +388,8 @@ public function assertLessOrEquals($expected, $actual, $description = null) { * @param $description * @see \Codeception\Module\Asserts::assertIsEmpty() */ - public function assertIsEmpty($actual, $description = null) { + public function assertIsEmpty($actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args())); } @@ -377,7 +402,8 @@ public function assertIsEmpty($actual, $description = null) { * @param $description * @see \Codeception\Module\Asserts::assertArrayHasKey() */ - public function assertArrayHasKey($key, $actual, $description = null) { + public function assertArrayHasKey($key, $actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args())); } @@ -390,7 +416,8 @@ public function assertArrayHasKey($key, $actual, $description = null) { * @param $description * @see \Codeception\Module\Asserts::assertArrayNotHasKey() */ - public function assertArrayNotHasKey($key, $actual, $description = null) { + public function assertArrayNotHasKey($key, $actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args())); } @@ -403,7 +430,8 @@ public function assertArrayNotHasKey($key, $actual, $description = null) { * @param $description * @see \Codeception\Module\Asserts::assertInstanceOf() */ - public function assertInstanceOf($class, $actual, $description = null) { + public function assertInstanceOf($class, $actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args())); } @@ -416,7 +444,8 @@ public function assertInstanceOf($class, $actual, $description = null) { * @param $description * @see \Codeception\Module\Asserts::assertNotInstanceOf() */ - public function assertNotInstanceOf($class, $actual, $description = null) { + public function assertNotInstanceOf($class, $actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args())); } @@ -429,7 +458,8 @@ public function assertNotInstanceOf($class, $actual, $description = null) { * @param $description * @see \Codeception\Module\Asserts::assertInternalType() */ - public function assertInternalType($type, $actual, $description = null) { + public function assertInternalType($type, $actual, $description = null) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInternalType', func_get_args())); } @@ -442,7 +472,8 @@ public function assertInternalType($type, $actual, $description = null) { * @param $message * @see \Codeception\Module\Asserts::fail() */ - public function fail($message) { + public function fail($message) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args())); } @@ -476,7 +507,8 @@ public function fail($message) { * @param $callback * @see \Codeception\Module\Asserts::expectException() */ - public function expectException($exception, $callback) { + public function expectException($exception, $callback) + { return $this->getScenario()->runStep(new \Codeception\Step\Action('expectException', func_get_args())); } } diff --git a/tests/unit/BulkQueryTest.php b/tests/unit/BulkQueryTest.php index a84ba0d..27aefcc 100644 --- a/tests/unit/BulkQueryTest.php +++ b/tests/unit/BulkQueryTest.php @@ -2,7 +2,6 @@ class BulkQueryTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; const BULK_SIZE = 5; @@ -42,7 +41,6 @@ public function testActionHandling() $this->query->reset(); verify($this->query->hasItems())->false(); }); - } diff --git a/tests/unit/CompoundQueryTest.php b/tests/unit/CompoundQueryTest.php index cc23679..8b4bb8d 100644 --- a/tests/unit/CompoundQueryTest.php +++ b/tests/unit/CompoundQueryTest.php @@ -2,7 +2,6 @@ class CompoundQueryTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/DocSortTest.php b/tests/unit/DocSortTest.php index ac2c8e4..9d2e3e0 100644 --- a/tests/unit/DocSortTest.php +++ b/tests/unit/DocSortTest.php @@ -2,7 +2,6 @@ class DocSortTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/FieldSortTest.php b/tests/unit/FieldSortTest.php index e65cec1..296f392 100644 --- a/tests/unit/FieldSortTest.php +++ b/tests/unit/FieldSortTest.php @@ -2,7 +2,6 @@ class FieldSortTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/JoiningQueryTest.php b/tests/unit/JoiningQueryTest.php index e83c211..3a57122 100644 --- a/tests/unit/JoiningQueryTest.php +++ b/tests/unit/JoiningQueryTest.php @@ -2,7 +2,6 @@ class JoiningQueryTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/LeafQueryTest.php b/tests/unit/LeafQueryTest.php index 88681d5..c2a44f7 100644 --- a/tests/unit/LeafQueryTest.php +++ b/tests/unit/LeafQueryTest.php @@ -2,7 +2,6 @@ class LeafQueryTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/PagerfantaAdapterTest.php b/tests/unit/PagerfantaAdapterTest.php index 962bcad..5ed798d 100644 --- a/tests/unit/PagerfantaAdapterTest.php +++ b/tests/unit/PagerfantaAdapterTest.php @@ -2,7 +2,6 @@ class PagerfantaAdapterTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/ScoreSortTest.php b/tests/unit/ScoreSortTest.php index 734f713..048be94 100644 --- a/tests/unit/ScoreSortTest.php +++ b/tests/unit/ScoreSortTest.php @@ -2,7 +2,6 @@ class ScoreSortTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/SearchTest.php b/tests/unit/SearchTest.php index b5d1ce8..f60a342 100644 --- a/tests/unit/SearchTest.php +++ b/tests/unit/SearchTest.php @@ -2,7 +2,6 @@ class SearchTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/ServiceTest.php b/tests/unit/ServiceTest.php index d6304fa..8c7363d 100644 --- a/tests/unit/ServiceTest.php +++ b/tests/unit/ServiceTest.php @@ -2,7 +2,6 @@ class ServiceTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** @@ -108,7 +107,7 @@ public function testMethodBulk() ->with($input) ->will($this->returnValue($output)); - $this->specify('method bulk is ran', function () use($input, $output) { + $this->specify('method bulk is ran', function () use ($input,$output) { verify($this->service->bulk($input))->equals($output); }); } @@ -138,7 +137,7 @@ public function testMethodDelete() ->with($input) ->will($this->returnValue($output)); - $this->specify('method delete is ran', function () use($input, $output) { + $this->specify('method delete is ran', function () use ($input,$output) { verify($this->service->delete($input))->equals($output); }); } @@ -168,7 +167,7 @@ public function testMethodCreate() ->with($input) ->will($this->returnValue($output)); - $this->specify('method create is ran', function () use($input, $output) { + $this->specify('method create is ran', function () use ($input,$output) { verify($this->service->create($input))->equals($output); }); } @@ -188,7 +187,7 @@ public function testMethodExists() ->with($input) ->will($this->returnValue($output)); - $this->specify('method exists is ran', function () use($input, $output) { + $this->specify('method exists is ran', function () use ($input,$output) { verify($this->service->exists($input))->equals($output); }); } @@ -205,9 +204,8 @@ public function testMethodIndices() ->method('indices') ->will($this->returnValue($output)); - $this->specify('method indices is ran', function () use($output) { + $this->specify('method indices is ran', function () use ($output) { verify($this->service->indices())->equals($output); }); } - } diff --git a/tests/unit/SortStringParserTest.php b/tests/unit/SortStringParserTest.php index 507c69f..8bc921e 100644 --- a/tests/unit/SortStringParserTest.php +++ b/tests/unit/SortStringParserTest.php @@ -2,7 +2,6 @@ class SortStringParserTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** diff --git a/tests/unit/SortTest.php b/tests/unit/SortTest.php index 8f3a653..df5c318 100644 --- a/tests/unit/SortTest.php +++ b/tests/unit/SortTest.php @@ -2,7 +2,6 @@ class SortTest extends \Codeception\TestCase\Test { - use \Codeception\Specify; /** @@ -51,5 +50,4 @@ public function testSetterGetter() verify($this->sort->getSorts())->count(1); }); } - }