Skip to content

Commit

Permalink
Modifications for benchmark kit 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
steevanb authored and phpbenchmarks committed Apr 28, 2019
1 parent 96c8255 commit 00668a6
Show file tree
Hide file tree
Showing 19 changed files with 1,870 additions and 74 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ phpunit.phar
/.vagrant
tests/*
runtime/*

composer.lock
/translations/aa_BB
!/translations/aa_BB/.gitkeep
/translations/en_GB
!/translations/en_GB/.gitkeep
/translations/fr_FR
!/translations/fr_FR/.gitkeep
91 changes: 91 additions & 0 deletions .phpbenchmarks/AbstractComponentConfiguration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?php

declare(strict_types=1);

namespace AbstractComponentConfiguration;

abstract class AbstractComponentConfiguration
{
public static function getComponentType(): int
{
return 2;
}

public static function getComponentName(): string
{
return 'Yii';
}

public static function getComponentSlug(): string
{
return 'yii';
}

public static function isPhp56Enabled(): bool
{
return true;
}

public static function isPhp70Enabled(): bool
{
return true;
}

public static function isPhp71Enabled(): bool
{
return true;
}

public static function isPhp72Enabled(): bool
{
return true;
}

public static function isPhp73Enabled(): bool
{
return true;
}

public static function getBenchmarkUrl(): string
{
return 'benchmark/rest';
}

public static function getCoreDependencyName(): string
{
return 'yiisoft/yii2';
}

public static function getCoreDependencyMajorVersion(): int
{
return 2;
}

public static function getCoreDependencyMinorVersion(): int
{
return 0;
}

public static function getCoreDependencyPatchVersion(): int
{
return 18;
}

public static function getBenchmarkType(): int
{
return 3;
}

public static function getSourceCodeUrls(): array
{
return [
'route' => 'https://github.com/phpbenchmarks/yii-common/blob/yii_2_rest-api/config/controller-map.php#L4',
'controller' => 'https://github.com/phpbenchmarks/yii-common/blob/yii_2_rest-api/controllers/RestapiController.php',
'randomizeLanguageDispatchEvent' => 'https://github.com/phpbenchmarks/yii-common/blob/yii_2_rest-api/controllers/RestapiController.php#L18',
'randomizeLanguageEventListener' => 'https://github.com/phpbenchmarks/yii-common/blob/yii_2_rest-api/EventListener/DefineLocaleEventListener.php',
'translations' => 'https://github.com/phpbenchmarks/yii-common/blob/yii_2_rest-api/translations/en_GB/phpbenchmarks.php',
'translate' => 'https://github.com/phpbenchmarks/yii-common/blob/yii_2_rest-api/models/ShadowUser.php#L36',
'serialize' => 'https://github.com/phpbenchmarks/yii-common/blob/yii_2_rest-api/models/ShadowUser.php'
];
}
}
75 changes: 35 additions & 40 deletions composer.lock → .phpbenchmarks/composer.lock.php5.6

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 00668a6

Please sign in to comment.