diff --git a/spec/CoverallsReportTransfer.spec.php b/spec/CoverallsReportTransfer.spec.php index 7098377..e583efc 100644 --- a/spec/CoverallsReportTransfer.spec.php +++ b/spec/CoverallsReportTransfer.spec.php @@ -43,8 +43,8 @@ 'TRAVIS_JOB_ID' => '10', 'COVERALLS_REPO_TOKEN' => 'token' ]); - $adaptor = new TravisCI($environment); - $service = new CIService($adaptor); + $adapter = new TravisCI($environment); + $service = new CIService($adapter); $this->report = new CoverallsReport([ 'name' => __DIR__ . '/fixtures/coveralls.json', diff --git a/spec/entity/CIService.spec.php b/spec/entity/CIService.spec.php index d17d7aa..4be2f74 100644 --- a/spec/entity/CIService.spec.php +++ b/spec/entity/CIService.spec.php @@ -19,13 +19,13 @@ beforeEach(function () { $this->prophet = new Prophet(); - $adaptor = $this->prophet->prophesize(EnvironmentAdapter::class); - $adaptor->getName()->willReturn('travis-ci'); - $adaptor->getBuildJobId()->willReturn('10'); - $adaptor->getCoverallsToken()->willReturn('token'); - $adaptor->isSupported()->willReturn(true); + $adapter = $this->prophet->prophesize(EnvironmentAdapter::class); + $adapter->getName()->willReturn('travis-ci'); + $adapter->getBuildJobId()->willReturn('10'); + $adapter->getCoverallsToken()->willReturn('token'); + $adapter->isSupported()->willReturn(true); - $this->service = new CIService($adaptor->reveal()); + $this->service = new CIService($adapter->reveal()); }); describe('getServiceName', function () { it('return service name', function () { diff --git a/spec/environment/AdapterResolver.spec.php b/spec/environment/AdapterResolver.spec.php index 4833329..405ad6f 100644 --- a/spec/environment/AdapterResolver.spec.php +++ b/spec/environment/AdapterResolver.spec.php @@ -33,9 +33,9 @@ ]); $this->resolver = new AdapterResolver($environment); }); - it('return detect circle-ci adaptor', function () { - $adaptor = $this->resolver->resolveByEnvironment(); - expect($adaptor)->toBeAnInstanceOf(CircleCI::class); + it('return detect circle-ci adapter', function () { + $adapter = $this->resolver->resolveByEnvironment(); + expect($adapter)->toBeAnInstanceOf(CircleCI::class); }); }); context('when drone.io', function () { @@ -48,9 +48,9 @@ ]); $this->resolver = new AdapterResolver($environment); }); - it('return detect drone.io adaptor', function () { - $adaptor = $this->resolver->resolveByEnvironment(); - expect($adaptor)->toBeAnInstanceOf(DroneIO::class); + it('return detect drone.io adapter', function () { + $adapter = $this->resolver->resolveByEnvironment(); + expect($adapter)->toBeAnInstanceOf(DroneIO::class); }); }); context('when travis-ci', function () { @@ -63,9 +63,9 @@ ]); $this->resolver = new AdapterResolver($environment); }); - it('return detect travis-ci adaptor', function () { - $adaptor = $this->resolver->resolveByEnvironment(); - expect($adaptor)->toBeAnInstanceOf(TravisCI::class); + it('return detect travis-ci adapter', function () { + $adapter = $this->resolver->resolveByEnvironment(); + expect($adapter)->toBeAnInstanceOf(TravisCI::class); }); }); context('when codeship', function () { @@ -78,9 +78,9 @@ ]); $this->resolver = new AdapterResolver($environment); }); - it('return detect codeship adaptor', function () { - $adaptor = $this->resolver->resolveByEnvironment(); - expect($adaptor)->toBeAnInstanceOf(CodeShip::class); + it('return detect codeship adapter', function () { + $adapter = $this->resolver->resolveByEnvironment(); + expect($adapter)->toBeAnInstanceOf(CodeShip::class); }); }); context('when jenkins', function () { @@ -91,9 +91,9 @@ ]); $this->resolver = new AdapterResolver($environment); }); - it('return detect jenkins adaptor', function () { - $adaptor = $this->resolver->resolveByEnvironment(); - expect($adaptor)->toBeAnInstanceOf(Jenkins::class); + it('return detect jenkins adapter', function () { + $adapter = $this->resolver->resolveByEnvironment(); + expect($adapter)->toBeAnInstanceOf(Jenkins::class); }); }); }); @@ -102,9 +102,9 @@ $environment = new Environment([]); $this->resolver = new AdapterResolver($environment); }); - it('return general adaptor', function () { - $adaptor = $this->resolver->resolveByEnvironment(); - expect($adaptor)->toBeAnInstanceOf(General::class); + it('return general adapter', function () { + $adapter = $this->resolver->resolveByEnvironment(); + expect($adapter)->toBeAnInstanceOf(General::class); }); }); }); @@ -114,9 +114,9 @@ $this->detector = new AdapterResolver($environment); }); context('when supported', function () { - it('return detect adaptor', function () { - $adaptor = $this->resolver->resolveByName('circle-ci'); - expect($adaptor)->toBeAnInstanceOf(CircleCI::class); + it('return detect adapter', function () { + $adapter = $this->resolver->resolveByName('circle-ci'); + expect($adapter)->toBeAnInstanceOf(CircleCI::class); }); }); context('when not supported', function () { diff --git a/spec/environment/CircleCI.spec.php b/spec/environment/CircleCI.spec.php index b5cc492..7c15867 100644 --- a/spec/environment/CircleCI.spec.php +++ b/spec/environment/CircleCI.spec.php @@ -15,7 +15,7 @@ describe(CircleCI::class, function () { describe('#getName', function () { - it('return adaptor name', function () { + it('return adapter name', function () { $this->circleCI = new CircleCI(new Environment()); expect($this->circleCI->getName())->toBe('circle-ci'); }); diff --git a/spec/environment/CodeShip.spec.php b/spec/environment/CodeShip.spec.php index 71fcd3b..87afc37 100644 --- a/spec/environment/CodeShip.spec.php +++ b/spec/environment/CodeShip.spec.php @@ -15,7 +15,7 @@ describe(CodeShip::class, function () { describe('#getName', function () { - it('return adaptor name', function () { + it('return adapter name', function () { $this->codeship = new CodeShip(new Environment()); expect($this->codeship->getName())->toBe('codeship'); }); diff --git a/spec/environment/DroneIO.spec.php b/spec/environment/DroneIO.spec.php index 4bc0ead..b4b8e1a 100644 --- a/spec/environment/DroneIO.spec.php +++ b/spec/environment/DroneIO.spec.php @@ -15,7 +15,7 @@ describe(DroneIO::class, function () { describe('#getName', function () { - it('return adaptor name', function () { + it('return adapter name', function () { $this->drone = new DroneIO(new Environment()); expect($this->drone->getName())->toBe('drone.io'); }); diff --git a/spec/environment/General.spec.php b/spec/environment/General.spec.php index 701d6d6..9fd747d 100644 --- a/spec/environment/General.spec.php +++ b/spec/environment/General.spec.php @@ -15,7 +15,7 @@ describe(General::class, function () { describe('#getName', function () { - it('return adaptor name', function () { + it('return adapter name', function () { $this->general = new General(new Environment()); expect($this->general->getName())->toBe(''); }); diff --git a/spec/environment/Jenkins.spec.php b/spec/environment/Jenkins.spec.php index 4a3fae3..b18842a 100644 --- a/spec/environment/Jenkins.spec.php +++ b/spec/environment/Jenkins.spec.php @@ -15,7 +15,7 @@ describe(Jenkins::class, function () { describe('#getName', function () { - it('return adaptor name', function () { + it('return adapter name', function () { $this->jenkins = new Jenkins(new Environment()); expect($this->jenkins->getName())->toBe('jenkins'); }); diff --git a/spec/environment/TravisCI.spec.php b/spec/environment/TravisCI.spec.php index 1c74778..2c7a8d2 100644 --- a/spec/environment/TravisCI.spec.php +++ b/spec/environment/TravisCI.spec.php @@ -15,7 +15,7 @@ describe(TravisCI::class, function () { describe('#getName', function () { - it('return adaptor name', function () { + it('return adapter name', function () { $this->travis = new TravisCI(new Environment()); expect($this->travis->getName())->toBe('travis-ci'); });