Skip to content

Commit 0573b80

Browse files
committed
Test
1 parent 8a1a739 commit 0573b80

2 files changed

Lines changed: 3 additions & 14 deletions

File tree

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
99
processIsolation="false"
10-
stopOnFailure="false"
10+
stopOnFailure="true"
1111
>
1212
<testsuites>
1313
<testsuite name="unit">

tests/unit/DocumentTest.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public function testDocumentNulls(): void
7979
$data = [
8080
'$permissions' => null,
8181
'shmuel' => null,
82+
//'bla' => true, // When adding this tests are passing
8283
];
8384

8485
/**
@@ -87,25 +88,13 @@ public function testDocumentNulls(): void
8788
$this->assertEquals(null, $data['shmuel']);
8889
$this->assertEquals(false, isset($data['shmuel']));
8990

90-
9191
$document = new Document($data);
9292

9393
$this->assertEquals(null, $document['$permissions']);
9494
$this->assertEquals(false, isset($document['$permissions']));
9595

9696
$this->assertEquals(null, $document['shmuel']);
97-
$this->assertEquals(false, isset($document['shmuel']));
98-
99-
var_dump(isset($document['shmuel']));
100-
$this->assertEquals(true, $document['shmuel']);
101-
$this->assertEquals(true, $document['shmuel']);
102-
exit;
103-
104-
var_dump($document->getAttribute('error', 'error'));
105-
var_dump($document->getAttribute('$permissions', '$permissions'));
106-
var_dump($document->getAttribute('shmuel', 'shmuel'));
107-
108-
$this->assertEquals(true, false);
97+
$this->assertEquals(false, isset($document['shmuel'])); // Why is failing?????
10998
}
11099

111100
public function testId(): void

0 commit comments

Comments
 (0)