update to lumen 7
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
Some checks failed
abc-api/abcParser/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class TuneTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$result = $tune->getIndex();
|
||||
|
||||
$this->assertInternalType('integer', $result);
|
||||
$this->assertIsInt($result);
|
||||
$this->assertEquals(1, $result);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user