mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
ItemTest: use the proper method to explicitly fail a test
This commit is contained in:
parent
95896eb911
commit
31fcd8e5fa
@ -110,7 +110,7 @@ class ItemTest extends TestCase{
|
|||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::assertTrue(false, "Unknown extra enchantment found: " . $enchantment->getType()->getName() . " x" . $enchantment->getLevel());
|
self::fail("Unknown extra enchantment found: " . $enchantment->getType()->getName() . " x" . $enchantment->getLevel());
|
||||||
}
|
}
|
||||||
self::assertEmpty($enchantments, "Expected all enchantments to be present");
|
self::assertEmpty($enchantments, "Expected all enchantments to be present");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user