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);

View File

@@ -61,7 +61,7 @@ class TuneTest extends PHPUnit_Framework_TestCase
$result = $tune->getIndex();
$this->assertInternalType('integer', $result);
$this->assertIsInt($result);
$this->assertEquals(1, $result);
}

View File

@@ -34,7 +34,7 @@ class ContextTest extends PHPUnit_Framework_TestCase
$this->assertGreaterThan(1, count($context));
foreach ($context as $key => $line) {
$this->assertInternalType('string', $line);
$this->assertIsString($line);
}
}

View File

@@ -26,7 +26,7 @@ class DefaultInterpreterTest extends PHPUnit_Framework_TestCase
*/
protected $interpreter;
protected function setUp()
protected function setUp(): void
{
$builder = new Builder();
$this->interpreter = new DefaultInterpreter($builder);