Why do not you print anything?
main: index.php
<?php
include_once("teste.php");
$a = new Teste();
echo $a->foo();
Included file: test.php
<?php
class Teste
{
private $teste;
public function foo()
{
$this->teste = "adasdsad";
return $this->teste;
}
}