1..12 # ->wrapMethod() ok 1 - ->wrapMethod() does nothing if the method does not exist. ok 2 - ->wrapMethod() adds code before the beginning of a method. ok 3 - ->wrapMethod() adds code after the end of a method. ok 4 - ->wrapMethod() adds code to the previously manipulated code. # ->getCode() ok 5 - ->getCode() returns the source code when no manipulations has been done ok 6 - ->getCode() returns the modified code # ->setFile() ->getFile() ok 7 - ->setFile() sets the name of the file associated with the source code # ::fromFile() ok 8 - ::fromFile() sets the file internally # ->save() ok 9 - ->save() saves the modified code if a file is associated with the instance # ->filterMethod() ok 10 - ->filterMethod() does not change the code if the filter does nothing not ok 11 - ->filterMethod() filters each line of the method # Failed test (.\sfClassManipulatorTest.php at line 210) # got: array ( 0 => ' ' function foo() ', 1 => ' { ', 2 => ' if (true) ', 3 => ' { ', 4 => ' return; ', 5 => ' } ', 6 => ' }',) ok 12 - ->filterMethod() modifies the method # Looks like you failed 1 tests of 12.