for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controller;
use App\Entity\Post;
use Core\Application;
use Core\DatabaseManager;
use Doctrine\ORM\EntityManager;
class Test
{
public function echoTest()
echo 'Hello Test!';
}
public function paramTest($name)
echo 'Hello ' . $name . '!';
public function dbTest()
$posts = DatabaseManager::getDefaultEntityManager()->getRepository(Post::class)->findAll();
return $posts;
public function goMain()
return 'redirect: ' . Application::getInstance()->url();
public function event()
echo 'Event!';
public function admin()
echo 'Admin page';
public function jsonTest()
return [
[
'title' => 'title 1',
'content' => 'content 1'
],
'title' => 'title 2',
'content' => 'content 2'
'title' => 'title 3',
'content' => 'content 3'
]
];