- renamed DKIM class method to camelCase and updated unit test - re-added acceptance suite yml file to the repo and updated gitignore

This commit is contained in:
Jonathan Labreuille
2015-07-22 11:42:17 +02:00
parent cd7b3d70ef
commit 3a572a99ff
5 changed files with 17 additions and 5 deletions

1
.gitignore vendored
View File

@@ -4,5 +4,4 @@ composer.phar
vendor
tests/_output/*
node_modules
tests/*.suite.yml
.env

View File

@@ -2,7 +2,7 @@
namespace MailPoet\Util;
class DKIM {
public static function generate_keys() {
public static function generateKeys() {
try {
$certificate = openssl_pkey_new(array('private_bits' => 1024));

View File

@@ -1,4 +1,4 @@
<?php //[STAMP] 9cd003010af5e6228d99a8c6909f010e
<?php //[STAMP] 1f68379452ca79a97b0ccbe71a086169
namespace _generated;
// This class was automatically generated by build task
@@ -8,7 +8,7 @@ namespace _generated;
use Codeception\Module\WebDriver;
use Helper\Acceptance;
trait acceptancetesterActions
trait AcceptanceTesterActions
{
/**
* @return \Codeception\Scenario

View File

@@ -0,0 +1,13 @@
# Codeception Test Suite Configuration
#
# Suite for acceptance tests.
# Perform tests in browser using the WebDriver or PhpBrowser.
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
class_name: AcceptanceTester
modules:
enabled:
- WebDriver:
url: 'http://localhost'
browser: phantomjs
- \Helper\Acceptance

View File

@@ -4,7 +4,7 @@ use \UnitTester;
class DKIMCest {
public function it_can_generate_keys() {
$keys = \MailPoet\Util\DKIM::generate_keys();
$keys = \MailPoet\Util\DKIM::generateKeys();
$public_header = '-----BEGIN PUBLIC KEY-----';
$private_header = '-----BEGIN RSA PRIVATE KEY-----';