diff --git a/composer.json b/composer.json index 0a4ad143..5e4dfa27 100644 --- a/composer.json +++ b/composer.json @@ -32,13 +32,11 @@ "php": "^7.2", "dflydev/embedded-composer": "^1.0@dev", "friendsofphp/php-cs-fixer": "^2.14", - "josephlavin/tap": "^1.0", "opdavies/sculpin-gist-embed-bundle": "^0.1", "opdavies/sculpin-twig-markdown-bundle": "^0.1", "phpstan/phpstan": "^0.11.8", "sculpin/sculpin": "^3.0", "tightenco/collect": "^6.1", - "tsphethean/sculpin-related-posts-bundle": "~0.1.0", "wikimedia/composer-merge-plugin": "^1.4" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 0e3a3424..f2fce255 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2e372197a3fa5f28c703ce2ec4c801ab", + "content-hash": "2b8e3a9d961afc92806163ee44276378", "packages": [ { "name": "composer/ca-bundle", @@ -1085,45 +1085,6 @@ ], "time": "2018-06-13T13:22:40+00:00" }, - { - "name": "josephlavin/tap", - "version": "v1.0.0", - "source": { - "type": "git", - "url": "https://github.com/josephlavin/tap.git", - "reference": "8733d96fb9b7d7dca204dfe59ec3ff34f3c69be9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/josephlavin/tap/zipball/8733d96fb9b7d7dca204dfe59ec3ff34f3c69be9", - "reference": "8733d96fb9b7d7dca204dfe59ec3ff34f3c69be9", - "shasum": "" - }, - "require": { - "php": ">=5.6.0" - }, - "require-dev": { - "phpunit/phpunit": "~5.7" - }, - "type": "library", - "autoload": { - "files": [ - "src/tap.php", - "src/TapProxy.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Stand alone port of Laravel's tap method.", - "keywords": [ - "laravel", - "php", - "tap" - ], - "time": "2017-09-24T23:36:28+00:00" - }, { "name": "justinrainbow/json-schema", "version": "5.2.8", @@ -4522,51 +4483,6 @@ ], "time": "2019-10-02T19:55:13+00:00" }, - { - "name": "tsphethean/sculpin-related-posts-bundle", - "version": "0.1.0", - "target-dir": "Tsphethean/Sculpin/Bundle/RelatedPostsBundle", - "source": { - "type": "git", - "url": "https://github.com/tsphethean/sculpin-related-posts-bundle.git", - "reference": "7398139c3a5c5d407436d385e58b1cf2fe7ac84b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/tsphethean/sculpin-related-posts-bundle/zipball/7398139c3a5c5d407436d385e58b1cf2fe7ac84b", - "reference": "7398139c3a5c5d407436d385e58b1cf2fe7ac84b", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "autoload": { - "psr-0": { - "Tsphethean\\Sculpin\\Bundle\\RelatedPostsBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Tom Phethean", - "homepage": "http://www.tsphethean.co.uk" - } - ], - "description": "Sculpin Related Posts Bundle", - "homepage": "https://sculpin.io", - "keywords": [ - "blog", - "blogging", - "related posts", - "site", - "static" - ], - "time": "2014-03-21T14:38:52+00:00" - }, { "name": "twig/extensions", "version": "v1.5.4", @@ -4667,19 +4583,19 @@ "authors": [ { "name": "Fabien Potencier", + "role": "Lead Developer", "email": "fabien@symfony.com", - "homepage": "http://fabien.potencier.org", - "role": "Lead Developer" + "homepage": "http://fabien.potencier.org" }, { "name": "Armin Ronacher", - "email": "armin.ronacher@active-4.com", - "role": "Project Founder" + "role": "Project Founder", + "email": "armin.ronacher@active-4.com" }, { "name": "Twig Team", - "homepage": "https://twig.symfony.com/contributors", - "role": "Contributors" + "role": "Contributors", + "homepage": "https://twig.symfony.com/contributors" } ], "description": "Twig, the flexible, fast, and secure template language for PHP", diff --git a/tests/TwigExtension/Talk/RetrievingTalksTest.php b/tests/TwigExtension/Talk/RetrievingTalksTest.php index bea66076..d1c55635 100644 --- a/tests/TwigExtension/Talk/RetrievingTalksTest.php +++ b/tests/TwigExtension/Talk/RetrievingTalksTest.php @@ -165,16 +165,10 @@ class RetrievingTalksTest extends TestCase ]; $talks = new Collection([$talkA, $talkB]); + $events = $this->extension->getAllEvents($talks); - tap($this->extension->getAllEvents($talks), function (Collection $events) { - $this->assertCount(3, $events); - - $this->assertSame( - ['event_a', 'event_b', 'event_a'], - $events->pluck('event')->toArray() - ); - - $this->assertSame(3, $events->pluck('date')->unique()->count()); - }); + $this->assertCount(3, $events); + $this->assertSame(['event_a', 'event_b', 'event_a'], $events->pluck('event')->toArray()); + $this->assertSame(3, $events->pluck('date')->unique()->count()); } }