You are here

public function Twig_Tests_Profiler_ProfileTest::testGetAddProfile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/Profiler/ProfileTest.php \Twig_Tests_Profiler_ProfileTest::testGetAddProfile()

File

vendor/twig/twig/test/Twig/Tests/Profiler/ProfileTest.php, line 59

Class

Twig_Tests_Profiler_ProfileTest

Code

public function testGetAddProfile() {
  $profile = new Twig_Profiler_Profile();
  $profile
    ->addProfile($a = new Twig_Profiler_Profile());
  $profile
    ->addProfile($b = new Twig_Profiler_Profile());
  $this
    ->assertSame(array(
    $a,
    $b,
  ), $profile
    ->getProfiles());
  $this
    ->assertSame(array(
    $a,
    $b,
  ), iterator_to_array($profile));
}