Hywan / atoum-instrumentation

The atoum\instrumentation library. Instrumentation for PHP (moles, code coverage…)
7 stars 2 forks source link

Edges instrumentation #4

Closed jubianchi closed 10 years ago

jubianchi commented 10 years ago

Given the following source code:

<?php

$object = new \stdClass();
$object->return = rand(0, PHP_INT_MAX);
$object->return(PHP_INT_MAX);

When running the test script, we get the following instrumented code:

<?php

$object = new \stdClass();mark_line(__LINE__);
$object->mark_line(__LINE__);return = rand(0, PHP_INT_MAX);
$object->mark_line(__LINE__);return (PHP_INT_MAX);
Hywan commented 10 years ago

Problem solved.