update to lumen 7
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit

This commit is contained in:
2020-06-24 11:58:32 -04:00
parent fb619dccbf
commit 1130f9a22f
10 changed files with 1955 additions and 1383 deletions

View File

@@ -9,6 +9,7 @@
namespace Tests\Unit\AbcParser\Domain\Atoms;
use Enzyme\Axiom\Atoms\AtomInterface;
use Enzyme\Axiom\Exceptions\AtomException;
use PHPUnit_Framework_TestCase;
use XaiCorp\AbcParser\Domain\Atoms\UnsignedIntegerAtom;
@@ -24,24 +25,20 @@ class UnsignedIntegerAtomTest extends PHPUnit_Framework_TestCase
$this->assertEquals($value, $result->getValue());
}
/**
* @expectedException \Enzyme\Axiom\Exceptions\AtomException
*/
public function testCreateAtom0Fails()
{
$value = 0;
$this->expectException(AtomException::class);
$result = new UnsignedIntegerAtom($value);
$this->assertEquals(false, $result, 'should have failed to create');
}
/**
* @expectedException \Enzyme\Axiom\Exceptions\AtomException
*/
public function testCreateNegativeAtomFails()
{
$value = -1;
$this->expectException(AtomException::class);
$result = new UnsignedIntegerAtom($value);