/
var
/
www
/
vhosts
/
nabawater
/
vendor
/
chillerlan
/
php-qrcode
/
tests
/
Helpers
/
/var/www/vhosts/nabawater/vendor/chillerlan/php-qrcode/tests/Helpers
mkdir
upload
Name
Size
Mode
Actions
BitBufferTest.php
1249
0644
edit
dl
rm
PolynomialTest.php
978
0644
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/vendor/chillerlan/php-qrcode/tests/Helpers/PolynomialTest.php
(978B)
<?php /** * Class PolynomialTest * * @filesource PolynomialTest.php * @created 09.02.2016 * @package chillerlan\QRCodeTest\Helpers * @author Smiley <smiley@chillerlan.net> * @copyright 2015 Smiley * @license MIT */ namespace chillerlan\QRCodeTest\Helpers; use chillerlan\QRCode\Helpers\Polynomial; use chillerlan\QRCode\QRCodeException; use PHPUnit\Framework\TestCase; /** * Polynomial coverage test */ final class PolynomialTest extends TestCase{ protected Polynomial $polynomial; protected function setUp():void{ $this->polynomial = new Polynomial; } public function testGexp():void{ $this::assertSame(142, $this->polynomial->gexp(-1)); $this::assertSame(133, $this->polynomial->gexp(128)); $this::assertSame(2, $this->polynomial->gexp(256)); } public function testGlogException():void{ $this->expectException(QRCodeException::class); $this->expectExceptionMessage('log(0)'); $this->polynomial->glog(0); } }
Save
cmd:
run