Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump murmurhash/phpunit, fix tests #876

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
99c0b5c
scrutinizer: bump minimum version to 7.3
afk11 Apr 17, 2021
63f6a5f
lastguest/murmurhash: support ^2.0
afk11 Apr 16, 2021
ee42dc6
phpunit: bump to 9.0
afk11 Apr 16, 2021
d78dc31
AddressTest: new usage of expectException
afk11 Apr 16, 2021
de4033d
BloomFilterTest: fix setUp signature
afk11 Apr 16, 2021
314437b
HierarchicalKeyTest: fix setUp signature
afk11 Apr 16, 2021
6a31a6c
AmountTest: [REVIEW] change amount fixtures since bcmath now seems to…
afk11 Apr 16, 2021
4fb5e9a
EnglishWordListTest: new usage of expectedException
afk11 Apr 16, 2021
ed54304
Base58Test: new usage of expectException
afk11 Apr 16, 2021
8ff86ab
BlockHeaderTest: assertInternalType deprecated, fix
afk11 Apr 16, 2021
4b10590
BlockHeaderTest: new usage of expectException
afk11 Apr 16, 2021
e1d95f1
BlockTest: assertInternalType deprecated, fix
afk11 Apr 16, 2021
58a1885
MerkleRootTest: new expectException usage
afk11 Apr 16, 2021
9214c93
ProofOfWorkTest: new expectException usage
afk11 Apr 16, 2021
0ea10fb
DifficultyTest: [REVIEW] tweak fixtures since bcmath scale behaviour …
afk11 Apr 16, 2021
40be493
StaticCollectionImplTest: new expectException usage
afk11 Apr 16, 2021
6e0719c
EcTest: new expectException usage
afk11 Apr 16, 2021
5b3df7a
HashTest: new expectException usage
afk11 Apr 16, 2021
25830f5
ElectrumKeyTest: new usage of expectException
afk11 Apr 16, 2021
76a0a81
HierarchicalKeySequenceTest: new expectException usage
afk11 Apr 16, 2021
a95e733
HierarchicalKeyTest: new usage of expectException
afk11 Apr 16, 2021
82471df
MultisigHDTest: new expectException usage
afk11 Apr 16, 2021
25600a3
PrefixRegistryTest: assertInternalType deprecated
afk11 Apr 16, 2021
081e681
PrivateKeyTest: new usage of expectException
afk11 Apr 16, 2021
f1c705e
PublicKeyTest: new usage for expectException
afk11 Apr 16, 2021
31d8c6a
LocktimeTest: [REVIEW] expectException usage, and discovered issue in…
afk11 Apr 16, 2021
934afa1
Bip39MnemonicTest: new usage for expectException
afk11 Apr 16, 2021
39d34ea
EnglishWordListTest: assertInternalType deprecated, and new expectExc…
afk11 Apr 16, 2021
4af6f3b
bip39 word list test: expectException usage
afk11 Apr 16, 2021
be5f6e6
PathTracerTest: assertInternalType deprecated, fix
afk11 Apr 16, 2021
eb93ac8
OutputClassifierTest: assertInternalArray deprecated
afk11 Apr 16, 2021
6214f7a
OutputScriptFactoryTest: new expectException usage
afk11 Apr 16, 2021
ad23c57
StackTest: new expectException usage
afk11 Apr 16, 2021
ff49a9b
OpcodesTest: new expectException usage
afk11 Apr 16, 2021
ace96f8
ScriptTest: new expectException usage and assertInternalType deprecat…
afk11 Apr 16, 2021
5f100dd
BitcoindBlockSerializerTest: new expectException usage
afk11 Apr 16, 2021
5c675f5
BlockHeaderSerializerTest: expectException usage
afk11 Apr 16, 2021
b8e2749
BlockSerializerTest: new expectException usage
afk11 Apr 16, 2021
17f2f86
ExtendedKeySerializerTest: new expectException usage
afk11 Apr 16, 2021
95f2618
CompactSignatureSerializerTest: new expectException usage
afk11 Apr 16, 2021
aa22cb1
DerSignatureSerializerTest: expectException usage
afk11 Apr 16, 2021
345ec80
TransactionSerializerTest: new expectException usage
afk11 Apr 16, 2021
fe10def
phpunit: remove deprecated filter (and unused)
afk11 Apr 16, 2021
2e38d72
SignDataTest: new expectException usage
afk11 Apr 16, 2021
b614e47
SignerTest: new expectException usage
afk11 Apr 16, 2021
ff920a0
Input/OutputCollectionMutatorTest: new expectException usage
afk11 Apr 16, 2021
a73d7e2
TransactionTest: new expectException usage
afk11 Apr 17, 2021
29ebaf1
UriTest: new expectException usage
afk11 Apr 17, 2021
bce0cb9
branch_test.json: remove stray whitespace from file, caused test fail…
afk11 Apr 23, 2021
983eb97
Script.php: nasty bug. use proper equality check, not assignment oper…
afk11 Apr 24, 2021
dbbd2a7
BloomFactor: refactor functions to avoid bcmath, because there were s…
afk11 Apr 24, 2021
244c851
ScriptCheckTestBase: compare strlen to 0, not empty string??
afk11 Apr 24, 2021
ba1f045
delete unused class WitnessCollectionMutator
afk11 Apr 24, 2021
6f7d4f2
AbstractCollectionMutator: refactor out SqlFixedArray which has had a…
afk11 Apr 24, 2021
77887b8
tests for InputCollectionMutator
afk11 Apr 24, 2021
4484c55
travis.yml: test 7.3/7.4/8.0
afk11 Apr 24, 2021
ef19212
travis.yml: bump dist to xenial
afk11 Apr 24, 2021
a7c56aa
rpc tests: assertInternalType deprecated fix
afk11 Apr 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
EnglishWordListTest: new usage of expectedException
afk11 committed Apr 17, 2021
commit 4fb5e9aa8580c1a21c988d94a868857c18522a64
11 changes: 3 additions & 8 deletions tests/Mnemonic/Electrum/WordList/EnglishWordListTest.php
Original file line number Diff line number Diff line change
@@ -16,25 +16,20 @@ public function testGetWordList()
$this->assertEquals(1626, count($wl->getWords()));
}

/**
* @expectedException \InvalidArgumentException
*/
public function testUnknownWord()
{
$wl = new EnglishWordList();
$this->expectException(\InvalidArgumentException::class);
$wl->getWord(101010101);
}

/**
* @expectedException \InvalidArgumentException
*/
public function testExceptionOutOfRange()
{
$wl = new EnglishWordList();

$word = $wl->getIndex('just');
$this->assertInternalType('integer', $word);

$this->assertIsInt($word);
$this->expectException(\InvalidArgumentException::class);
$wl->getIndex('unknownword');
}
}