feat(expect): handle property calls to opposite expectations

This commit is contained in:
Nuno Maduro
2020-07-15 01:05:36 +02:00
parent 2751bc9674
commit 1e61144cd2
4 changed files with 31 additions and 3 deletions

10
tests/Expect/not.php Normal file
View File

@ -0,0 +1,10 @@
<?php
test('not property calls', function () {
expect(true)
->toBeTrue()
->not()->toBeFalse()
->not->toBeFalse
->and(false)
->toBeFalse();
});