Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
Adds test in for null in assertNodeIsValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunty committed Dec 19, 2016
1 parent aae7502 commit 50f7b61
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ApiTestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ public function it_asserts_the_value_of_a_node_in_an_xml_response()
self::assertNodeIsValue('//slide[1]/title', 'Wake up to WonderWidgets!');
}

/**
* @test
*/
public function it_asserts_the_value_of_a_node_in_an_xml_response_is_null_if_it_does_not_exist()
{
$this->get('/xml');
self::assertNodeIsValue('//slide[43]//foo/bar/title', null);
}

/**
* @test
*/
Expand Down

0 comments on commit 50f7b61

Please sign in to comment.