Skip to content

Commit

Permalink
Bump version to 3.5.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
andergmartins committed Apr 27, 2023
1 parent d292ed2 commit e7ce14e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publishpress/pimple-pimple",
"version": "3.5.0.7",
"version": "3.5.0.8",
"type": "library",
"description": "Pimple, a simple Dependency Injection Container, prefixed for PublishPress",
"keywords": [
Expand Down
14 changes: 7 additions & 7 deletions lib/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
return;
}

if (! function_exists(__NAMESPACE__ . '\register3Dot5Dot0Dot7')) {
if (! function_exists(__NAMESPACE__ . '\register3Dot5Dot0Dot8')) {
if (! defined('PUBLISHPRESS_PIMPLE_PIMPLE_INCLUDED')) {
define('PUBLISHPRESS_PIMPLE_PIMPLE_INCLUDED', __DIR__);
}
Expand All @@ -27,24 +27,24 @@
add_action('plugins_loaded', [Versions::class, 'initializeLatestVersion'], -185, 0);
}

add_action('plugins_loaded', __NAMESPACE__ . '\register3Dot5Dot0Dot7', -200, 0);
add_action('plugins_loaded', __NAMESPACE__ . '\register3Dot5Dot0Dot8', -200, 0);

function register3Dot5Dot0Dot7()
function register3Dot5Dot0Dot8()
{
if (! class_exists('PublishPress\Pimple\Container')) {
$versions = Versions::getInstance();
$versions->register('3.5.0.7', __NAMESPACE__ . '\initialize3Dot5Dot0Dot7');
$versions->register('3.5.0.8', __NAMESPACE__ . '\initialize3Dot5Dot0Dot8');
}
}

function initialize3Dot5Dot0Dot7()
function initialize3Dot5Dot0Dot8()
{
require_once __DIR__ . '/autoload.php';

if (! defined('PUBLISHPRESS_PIMPLE_PIMPLE_VERSION')) {
define('PUBLISHPRESS_PIMPLE_PIMPLE_VERSION', '3.5.0.7');
define('PUBLISHPRESS_PIMPLE_PIMPLE_VERSION', '3.5.0.8');
}

do_action('publishpress_pimple_pimple_3Dot5Dot0Dot7_initialized');
do_action('publishpress_pimple_pimple_3Dot5Dot0Dot8_initialized');
}
}
8 changes: 4 additions & 4 deletions tests/wpunit/VersionsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testAllVersionsAreRegistered(WpunitTester $I)
$I->assertEquals([
'2.0.0.1' => 'PublishPress\PimplePimple\initialize2Dot0Dot0Dot1',
'2.0.0.2' => 'PublishPress\PimplePimple\initialize2Dot0Dot0Dot2',
'3.5.0.7' => 'PublishPress\PimplePimple\initialize3Dot5Dot0Dot7',
'3.5.0.8' => 'PublishPress\PimplePimple\initialize3Dot5Dot0Dot8',
], $registeredVersions);
}

Expand All @@ -31,7 +31,7 @@ public function testLatestVersionIsTheCurrentVersion(WpunitTester $I)

$latestVersion = $versions->latestVersion();

$I->assertEquals('3.5.0.7', $latestVersion);
$I->assertEquals('3.5.0.8', $latestVersion);
}

public function testLatestVersionCallbackIsTheLastOne(WpunitTester $I)
Expand All @@ -40,7 +40,7 @@ public function testLatestVersionCallbackIsTheLastOne(WpunitTester $I)

$latestVersionCallback = $versions->latestVersionCallback();

$I->assertEquals('PublishPress\PimplePimple\initialize3Dot5Dot0Dot7', $latestVersionCallback);
$I->assertEquals('PublishPress\PimplePimple\initialize3Dot5Dot0Dot8', $latestVersionCallback);
}

public function testInitializeLatestVersion(WpunitTester $I)
Expand All @@ -51,7 +51,7 @@ public function testInitializeLatestVersion(WpunitTester $I)

$I->assertTrue(class_exists('PublishPress\Pimple\Container'));

$didAction = (bool)did_action('publishpress_pimple_pimple_3Dot5Dot0Dot7_initialized');
$didAction = (bool)did_action('publishpress_pimple_pimple_3Dot5Dot0Dot8_initialized');
$I->assertTrue($didAction);
}
}

0 comments on commit e7ce14e

Please sign in to comment.