Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Releases: nrawe/tapped

First stable release!

30 Nov 22:47
Compare
Choose a tag to compare
1.0.0

Update README.md

0.1.6

30 Nov 19:07
Compare
Choose a tag to compare
0.1.6 Pre-release
Pre-release
Add test for the protocol handling

0.1.5

24 Nov 22:58
Compare
Choose a tag to compare
0.1.5 Pre-release
Pre-release
Allow for empty descriptions (#6)

0.1.4: Update Environment.php

22 Nov 16:57
Compare
Choose a tag to compare
Pre-release
Prevent `UnexpectedValueException`s when the tests directory doesn't exist.

0.1.3: Update tapped

21 Nov 23:03
Compare
Choose a tag to compare
0.1.3: Update tapped Pre-release
Pre-release
Bad paths

0.1.2: Update composer.json

21 Nov 22:51
Compare
Choose a tag to compare
Pre-release
Missing shell command

0.1.1: Update and rename tapped.php to tapped

21 Nov 22:49
Compare
Choose a tag to compare
Improve bin usage

0.1.0: Comparisons refactor (#1)

21 Nov 22:36
Compare
Choose a tag to compare
Pre-release
Updates a fair amount of handling to allow for some saner code. The big takeaway is that we now have a dynamic comparisons system which allows extensions to configure assertions per their needs. For example--

```php
<?php

use Rawebone\Tapped\{Extension, Comparison, Comparator};

class MyExtension extends Extension
{
     public function comparisons(Comparator $c)
     {
          $c->register(new class implements Comparison {
               compare($a, $b) { return $a instanceof $b; }
               name() { return 'toBeAnInstanceOf'; }
          });
     }
}
```

We can then call `$expect(new A)->toBeAnInstanceOf(A::class)`. In total this change might not seem very remarkable. However, it allows users to easily and cleanly extend the assertion functionality without needing to bloat the core system. Additionally this allows for domain specific comparisons to be exposed with domain specific extensions.