Skip to content

Commit

Permalink
Minor test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Jul 29, 2018
1 parent 3ab13dc commit dd6aa2d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/QuiteSimpleXMLElementTest.php
Expand Up @@ -307,45 +307,45 @@ public function testAll()
}

/**
* @expectedException Danmichaelo\QuiteSimpleXMLElement\InvalidXMLException
* @expectedException \Danmichaelo\QuiteSimpleXMLElement\InvalidXMLException
*/
public function testParseErrorneousXML()
public function testParseErroneousXMLShouldThrowException()
{
$xml = '<ns1:NCI';
new QuiteSimpleXMLElement($xml);
}

/**
* @expectedException Danmichaelo\QuiteSimpleXMLElement\InvalidXMLException
* @expectedException \Danmichaelo\QuiteSimpleXMLElement\InvalidXMLException
*/
public function testParseEmptyXML()
public function testParseEmptyXMLShouldThrowException()
{
$xml = '';
new QuiteSimpleXMLElement($xml);
}

/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testArgumentIsNull()
{
$dom = new QuiteSimpleXMLElement(null);
new QuiteSimpleXMLElement(null);
}

/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testArgumentOfUnknownType()
{
$dom = new QuiteSimpleXMLElement(2.0);
new QuiteSimpleXMLElement(2.0);
}

/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testArgumentOfUnknownClass()
{
$dom = new QuiteSimpleXMLElement(new \DateTime());
new QuiteSimpleXMLElement(/** @scrutinizer ignore-type */ new \DateTime());
}

public function testReplace()
Expand Down

0 comments on commit dd6aa2d

Please sign in to comment.