Skip to content

Commit

Permalink
Update plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed Jun 22, 2017
1 parent f9f6fef commit efe18de
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 25 deletions.
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{
"type": "pre-macro",
"name": "pre/immutable-classes",
"license": "MIT",
"require": {
"pre/plugin": "^0.6"
"pre/plugin": "^0.7.3"
},
"autoload": {
"files": [
"src/bootstrap.php"
],
"psr-4": {
"Pre\\ImmutableClasses\\": "src"
}
},
"require-dev": {
"phpunit/phpunit": "^5.0"
"phpunit/phpunit": "^5.0|^6.0"
},
"autoload-dev": {
"psr-4": {
"Pre\\ImmutableClasses\\": "tests"
}
},
"extra": {
"macros": [
"src/macros.yay"
]
}
}
10 changes: 2 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Pre Immutable Classes
# Immutable Classes

Documentation can be found at [preprocess.io](https://preprocess.io/docs#immutable-classes).

## Versioning

This library follows [Semver](http://semver.org). According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.

All methods, with `public` visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep `protected` methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.
Documentation can be found at [preprocess.io](https://preprocess.io#immutable-classes).
3 changes: 0 additions & 3 deletions src/bootstrap.php

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions tests/SpecTest.php → tests/MacroTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Pre\ImmutableClasses;

use Pre\Testing\Runner;
use Pre\Plugin\Testing\Runner;

class SpecTest extends Runner
class MacroTest extends Runner
{
protected function path(): string
{
Expand Down
19 changes: 12 additions & 7 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<?php

namespace Yay;
namespace
{
require __DIR__ . "/../vendor/autoload.php";

// let's use a namespace trick, to make non-colliding variables predictable.
putenv("PRE_BASE_DIR=" . __DIR__ . "/../");

function md5($value) {
return $value;
Pre\Plugin\addMacroPath(__DIR__ . "/../src/macros.yay");
}

putenv("PRE_BASE_DIR=" . __DIR__ . "/..");

require __DIR__ . "/../vendor/autoload.php";
namespace Yay
{
function md5($value)
{
return $value;
}
}

0 comments on commit efe18de

Please sign in to comment.