public function testReturnsNullWhenSourceDoesNotContainClass()
{
$sourceCode = '<?php echo "Hello world!";';
$locator = new StringSourceLocator($sourceCode);
$this->assertNull($locator->locateIdentifier($this->getMockReflector(), new Identifier('does not matter what the class name is', new IdentifierType(IdentifierType::IDENTIFIER_CLASS))));
}