Okay, so I figured it out. The issue was to do with the Content-Type
set in the following code:
$this->beConstructedWith(new \Tonic\Application(), new \Tonic\Request(array(
'uri' => '/',
'method' => 'PUT',
'Content-Type' => 'application/json',
'data' => '{"name":"testing", "email":"testing@@test.com", "password":"Passw0rd"}'
)), array());
It should be contentType
:
$this->beConstructedWith(new \Tonic\Application(), new \Tonic\Request(array(
'uri' => '/',
'method' => 'PUT',
'contentType' => 'application/json',
'data' => '{"name":"testing", "email":"testing@@test.com", "password":"Passw0rd"}'
)), array());